@@ -153,7 +153,7 @@ For temporarily disabling Keycloak:
153153## Disable ArgoCD auto-sync during the changes
154154kubectl patch application -n argocd keycloak-keycloak-operator --patch '[{"op": "remove", "path": "/spec/syncPolicy/automated"}]' --type=json
155155## Scale Keycloak statefulset to zero
156- kubectl scale statefulset -n keycloak keycloak --replicas=0
156+ kubectl scale statefulset -n keycloak keycloak --replicas=0
157157## Verify that pods are shut down
158158kubectl get statefulset -n keycloak keycloak # Should show READY 0/0
159159` ` `
@@ -216,7 +216,7 @@ For restoring Gitea processes:
216216## Re-enable ArgoCD auto-sync, which should also change the Gitea statefulset to scale up
217217kubectl patch application -n argocd gitea-gitea --patch '[{"op": "add", "path": "/spec/syncPolicy/automated", "value": {"prune": true, "allowEmpty": true}}]' --type=json
218218## Optional: scale up, for not having to wait for re-sync of ArgoCD
219- kubectl patch statefulset -n gitea gitea --patch '[{"op": "replace", "path": "/spec/ replicas", "value": 1}]' --type=json
219+ kubectl scale deployment -n gitea gitea --replicas=1
220220` ` `
221221
222222For restoring Keycloak processes :
@@ -225,7 +225,7 @@ For restoring Keycloak processes:
225225## Re-enable ArgoCD auto-sync
226226kubectl patch application -n argocd keycloak-keycloak-operator-cr --patch '[{"op": "add", "path": "/spec/syncPolicy/automated", "value": {"prune": true, "allowEmpty": true}}]' --type=json
227227## Optional: scale up, for not having to wait for re-sync of ArgoCD
228- kubectl patch keycloak -n keycloak keycloak --patch '[{"op": "replace", "path": "/spec/instances", "value": 1}]' --type=json
228+ kubectl scale statefulset -n keycloak keycloak --replicas=1
229229## Required: force a restart of the platform Keycloak operator; ArgoCD re-creates the Deployment
230230kubectl delete deploy -n apl-keycloak-operator apl-keycloak-operator
231231` ` `
0 commit comments