Skip to content

Commit

Permalink
added uninstall
Browse files Browse the repository at this point in the history
  • Loading branch information
dorkolog committed Jun 17, 2019
1 parent 82cb5ed commit 4d791a1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,7 @@ install:
@kubectl patch clusterrole system:$(DNS_DEPLOYMENT) -p "`sed "s/#DEPLOYMENT#/$(DNS_DEPLOYMENT)/g" kubernetes/clusterrole.yaml`"


uninstall:
$(eval DNS_DEPLOYMENT=$(shell kubectl get deploy -n kube-system -l k8s-app=kube-dns -o=custom-columns=NAME:.metadata.name | tail -n1 2>/dev/null))
@kubectl rollout undo deploy $(DNS_DEPLOYMENT) -n kube-system
@kubectl patch svc -n kube-system kube-dns -p "<`sed 's/54/53/g' kubernetes/service_patch.yaml`"

0 comments on commit 4d791a1

Please sign in to comment.