Skip to content

Commit

Permalink
Always delete old kube-dns deployments, service, serviceaccount & con…
Browse files Browse the repository at this point in the history
…figmap first, if already there.
  • Loading branch information
jonashackt committed Aug 26, 2018
1 parent 079d7d4 commit dc5e77c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roles/kubedns/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
dest: /opt/kubedns/kube-dns.yaml

- name: Remove old kube-dns deployment, if already there
shell: kubectl delete deployment.apps/kube-dns -n kube-system
shell: kubectl delete -f /opt/kubedns/kube-dns.yaml
ignore_errors: true

- name: Apply kube-dns Service, ServiceAccount, ConfigMap, Deployment
Expand Down

0 comments on commit dc5e77c

Please sign in to comment.