-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #293 from projectsyn/upgrade-v17
Enable Network Policies and upgrade to Keycloak to v23.0.7
- Loading branch information
Showing
41 changed files
with
358 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
= Upgrade from v15 to v16 | ||
|
||
This guide describes the steps to perform an upgrade of the component from version v15 to v16. | ||
|
||
== Breaking Changes | ||
|
||
* Network Policies are now enabled by default | ||
|
||
== Changes | ||
|
||
* The component requires Kubernetes v1.25 or newer. | ||
* Keycloak version is v23.0.7 by default. | ||
|
||
== Parameter changes | ||
|
||
* None | ||
|
||
== Step-by-step guide | ||
|
||
When upgrading the component, the following actions are required if the built-in database is used: | ||
|
||
. Do a backup of the built-in database. | ||
+ | ||
[source,bash] | ||
---- | ||
instance=keycloak | ||
namespace=syn-${instance} | ||
kubectl -n "${namespace}" exec -ti keycloak-postgresql-0 -c postgresql -- sh -c 'PGDATABASE="$POSTGRES_DATABASE" PGUSER="$POSTGRES_USER" PGPASSWORD="$POSTGRES_PASSWORD" pg_dump --clean' > keycloak-postgresql-$(date +%F-%H-%M-%S).sql | ||
---- | ||
|
||
. Apply the parameter changes. | ||
|
||
. Compile and push the cluster catalog. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
...n/external/external/external/01_keycloak_helmchart/keycloakx/templates/networkpolicy.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
apiVersion: networking.k8s.io/v1 | ||
kind: NetworkPolicy | ||
metadata: | ||
labels: | ||
app.kubernetes.io/instance: keycloakx | ||
app.kubernetes.io/managed-by: Helm | ||
app.kubernetes.io/name: keycloakx | ||
app.kubernetes.io/version: 23.0.7 | ||
helm.sh/chart: keycloakx-2.3.0 | ||
name: keycloakx | ||
namespace: syn-external | ||
spec: | ||
ingress: | ||
- from: | ||
- namespaceSelector: | ||
matchLabels: | ||
kubernetes.io/metadata.name: ingress-nginx | ||
podSelector: | ||
matchLabels: | ||
app.kubernetes.io/name: ingress-nginx | ||
ports: | ||
- port: 8080 | ||
protocol: TCP | ||
- port: 8443 | ||
protocol: TCP | ||
- from: | ||
- podSelector: | ||
matchLabels: | ||
app.kubernetes.io/instance: keycloakx | ||
app.kubernetes.io/name: keycloakx | ||
ports: | ||
- port: 8080 | ||
protocol: TCP | ||
- port: 8443 | ||
protocol: TCP | ||
podSelector: | ||
matchLabels: | ||
app.kubernetes.io/instance: keycloakx | ||
app.kubernetes.io/name: keycloakx | ||
policyTypes: | ||
- Ingress |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
tests/golden/external/external/external/01_networkpolicy_infinispan.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
apiVersion: networking.k8s.io/v1 | ||
kind: NetworkPolicy | ||
metadata: | ||
annotations: {} | ||
labels: | ||
app.kubernetes.io/component: keycloak | ||
app.kubernetes.io/instance: external | ||
app.kubernetes.io/managed-by: commodore | ||
app.kubernetes.io/name: keycloak | ||
name: keycloakx-infinispan | ||
name: keycloakx-infinispan | ||
spec: | ||
egress: [] | ||
ingress: | ||
- from: | ||
- podSelector: | ||
matchLabels: | ||
app.kubernetes.io/instance: keycloakx | ||
app.kubernetes.io/name: keycloakx | ||
ports: | ||
- port: 7800 | ||
protocol: TCP | ||
podSelector: | ||
matchLabels: | ||
app.kubernetes.io/instance: keycloakx | ||
app.kubernetes.io/name: keycloakx | ||
policyTypes: | ||
- Ingress |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
apiVersion: networking.k8s.io/v1 | ||
kind: NetworkPolicy | ||
metadata: | ||
annotations: {} | ||
labels: | ||
name: prometheus-syn-infra-monitoring-to-keycloakx | ||
name: prometheus-syn-infra-monitoring-to-keycloakx | ||
namespace: syn-external | ||
spec: | ||
egress: [] | ||
ingress: | ||
- from: | ||
- namespaceSelector: | ||
matchLabels: | ||
name: syn-infra-monitoring | ||
podSelector: | ||
matchLabels: | ||
app.kubernetes.io/component: prometheus | ||
ports: | ||
- port: 8080 | ||
protocol: TCP | ||
podSelector: | ||
matchLabels: | ||
app.kubernetes.io/instance: keycloakx | ||
app.kubernetes.io/name: keycloakx | ||
policyTypes: | ||
- Ingress |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
...-postgres/openshift-postgres/01_keycloak_helmchart/keycloakx/templates/networkpolicy.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
apiVersion: networking.k8s.io/v1 | ||
kind: NetworkPolicy | ||
metadata: | ||
labels: | ||
app.kubernetes.io/instance: keycloakx | ||
app.kubernetes.io/managed-by: Helm | ||
app.kubernetes.io/name: keycloakx | ||
app.kubernetes.io/version: 23.0.7 | ||
helm.sh/chart: keycloakx-2.3.0 | ||
name: keycloakx | ||
namespace: syn-openshift-postgres | ||
spec: | ||
ingress: | ||
- from: | ||
- namespaceSelector: | ||
matchLabels: | ||
kubernetes.io/metadata.name: ingress-nginx | ||
podSelector: | ||
matchLabels: | ||
app.kubernetes.io/name: ingress-nginx | ||
ports: | ||
- port: 8080 | ||
protocol: TCP | ||
- port: 8443 | ||
protocol: TCP | ||
- from: | ||
- podSelector: | ||
matchLabels: | ||
app.kubernetes.io/instance: keycloakx | ||
app.kubernetes.io/name: keycloakx | ||
ports: | ||
- port: 8080 | ||
protocol: TCP | ||
- port: 8443 | ||
protocol: TCP | ||
podSelector: | ||
matchLabels: | ||
app.kubernetes.io/instance: keycloakx | ||
app.kubernetes.io/name: keycloakx | ||
policyTypes: | ||
- Ingress |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.