Merge "Deleting ic-nginx-ingress-controller at restore"
This commit is contained in:
commit
91183a878e
@ -162,6 +162,13 @@
|
|||||||
register: nginx_webhook_service
|
register: nginx_webhook_service
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
|
|
||||||
|
- name: If on system restore mode, kill ingress validating webhook pod so it can be recreated
|
||||||
|
shell: >-
|
||||||
|
kubectl delete pod -n kube-system
|
||||||
|
-l $(kubectl get service -n kube-system {{ nginx_webhook_service.stdout }}
|
||||||
|
-o jsonpath="{.spec.selector}" | tr -d "{}\"" | tr ":" "=")
|
||||||
|
when: mode == 'restore' and armada_check.rc == 0 and nginx_webhook_service.rc == 0
|
||||||
|
|
||||||
- name: Check ingress validating webhook service and pod status
|
- name: Check ingress validating webhook service and pod status
|
||||||
shell: >-
|
shell: >-
|
||||||
kubectl wait pod -n kube-system
|
kubectl wait pod -n kube-system
|
||||||
|
Loading…
Reference in New Issue
Block a user