Skip to content

Commit

Permalink
to cleanup all created resources, not only kube-ovn namespace.
Browse files Browse the repository at this point in the history
  • Loading branch information
fanbin committed May 21, 2019
1 parent 9361bb4 commit 69c4853
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dist/images/cleanup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ kubectl patch svc -n kube-ovn ovn-nb --type='json' -p '[{"op": "replace", "path"
kubectl patch svc -n kube-ovn ovn-sb --type='json' -p '[{"op": "replace", "path": "/metadata/finalizers", "value": []}]' || true

# Delete Kube-OVN components
kubectl delete ns kube-ovn
kubectl delete -f https://raw.githubusercontent.com/alauda/kube-ovn/master/yamls/ovn.yaml
kubectl delete -f https://raw.githubusercontent.com/alauda/kube-ovn/master/yamls/kube-ovn.yaml

# Remove annotations in namespaces and nodes
kubectl annotate no --all ovn.kubernetes.io/cidr-
Expand Down

0 comments on commit 69c4853

Please sign in to comment.