Skip to content

Commit 5f3c433

Browse files
authored
Merge pull request #277 from projectsyn/howto-upgrade-v15-typo
Improvements in the upgrade documentation of v14 to v15
2 parents 008b8d1 + 0212e24 commit 5f3c433

File tree

1 file changed

+15
-8
lines changed

1 file changed

+15
-8
lines changed

docs/modules/ROOT/pages/how-tos/upgrade-14.x-to-15.x.adoc

+15-8
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ kubectl -n "${NAMESPACE}" exec -ti keycloak-postgresql-0 -c postgresql -- sh -c
6868
----
6969
kubectl -n $NAMESPACE scale statefulset keycloak-postgresql --replicas=0
7070
71-
# Wait until statefulset has been scaled down
72-
kubectl -n $NAMESPACE get statefulset keycloak-postgresql -w
71+
# Check if the statefulset pod have been scaled down
72+
kubectl -n $NAMESPACE get pod keycloak-postgresql-0
7373
----
7474

7575
. Delete the Postgres database production database persistentvolumeclaim.
@@ -88,15 +88,15 @@ REALLY! DO NOT PROCEED HERE WITHOUT HAVING DONE A BACKUP AND ENSURED THE DUMP CO
8888
----
8989
kubectl -n $NAMESPACE delete persistentvolumeclaim data-keycloak-postgresql-0
9090
91-
# Wait until persistent volume claim has been deleted
92-
kubectl -n $NAMESPACE get persistentvolumeclaim data-keycloak-postgresql-0 -w
91+
# Check if the persistent volume claim has been deleted
92+
kubectl -n $NAMESPACE get persistentvolumeclaim data-keycloak-postgresql-0
9393
----
9494

9595
. Patch the Postgres statefulset to v15.
9696
+
9797
[source,bash]
9898
----
99-
kubectl n $NAMESPACE patch sts keycloak-postgresql -p '{"spec": {"template": {"spec": {"containers": [{"name": "postgresql", "image": "docker.io/bitnami/postgresql:15.6.0-debian-12-r5"}]}}}}'
99+
kubectl -n $NAMESPACE patch sts keycloak-postgresql -p '{"spec": {"template": {"spec": {"containers": [{"name": "postgresql", "image": "docker.io/bitnami/postgresql:15.6.0-debian-12-r5"}]}}}}'
100100
----
101101

102102
. Scale up the Postgres database.
@@ -113,7 +113,14 @@ kubectl -n $NAMESPACE get statefulset keycloak-postgresql -w
113113
+
114114
[source,bash]
115115
----
116-
kubectl -n syn-keycloak-test logs keycloak-postgresql-0 | grep "PostgreSQL 15.6"
116+
kubectl -n $NAMESPACE logs keycloak-postgresql-0 | grep "PostgreSQL 15.6"
117+
----
118+
+
119+
should look similar to
120+
+
121+
[source,bash]
122+
----
123+
2024-03-26 16:17:24.653 GMT [1] LOG: starting PostgreSQL 15.6 on x86_64-pc-linux-gnu, compiled by gcc (Debian 12.2.0-14) 12.2.0, 64-bit
117124
----
118125

119126
. Import the SQL dump into the Postgres v15 database.
@@ -140,7 +147,7 @@ kubectl -n "${NAMESPACE}" exec -ti keycloak-postgresql-0 -c postgresql -- sh -c
140147
+
141148
[source,bash]
142149
----
143-
diff keycloak-postgresql-2024-02-23-13-04-21.sql keycloak-postgresql-2024-02-23-13-04-35.sql
150+
diff <(sort keycloak-postgresql-2024-03-26-17-14-52.sql) <(sort keycloak-postgresql-2024-03-26-17-20-40.sql)
144151
----
145152
+
146153
Should be similar to:
@@ -206,7 +213,7 @@ parameters:
206213
+
207214
[source,bash]
208215
----
209-
kubectl -n syn patch applications.argoproj.io root --type=json \
216+
kubectl -n syn patch applications.argoproj.io root --type=json \
210217
-p '[{
211218
"op":"replace",
212219
"path":"/spec/syncPolicy",

0 commit comments

Comments
 (0)