diff --git a/playbookconfig/src/playbooks/roles/common/armada-helm/tasks/main.yml b/playbookconfig/src/playbooks/roles/common/armada-helm/tasks/main.yml index d942c0c7a..aae6ab60f 100644 --- a/playbookconfig/src/playbooks/roles/common/armada-helm/tasks/main.yml +++ b/playbookconfig/src/playbooks/roles/common/armada-helm/tasks/main.yml @@ -162,6 +162,13 @@ register: nginx_webhook_service 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 shell: >- kubectl wait pod -n kube-system