Skip to content

Instantly share code, notes, and snippets.

@dangtrinhnt-mmt
Created October 7, 2019 08:24
Show Gist options
  • Save dangtrinhnt-mmt/f9ea0ad9429fdd484e6ed082d07f86ea to your computer and use it in GitHub Desktop.
Save dangtrinhnt-mmt/f9ea0ad9429fdd484e6ed082d07f86ea to your computer and use it in GitHub Desktop.
A shell script to cleanup kong-ingress-controller
kubectl delete serviceaccount kong-serviceaccount -n kong
kubectl delete clusterrolebinding kong-ingress-clusterrole-nisa-binding -n kong
kubectl delete service kong-proxy -n kong
kubectl delete -n kong service kong-validation-webhook
kubectl delete -n kong service postgres
kubectl delete -n kong deployment ingress-kong
kubectl delete -n kong statefulset postgres
kubectl delete -n kong job kong-migrations
kubectl delete -n kong customresourcedefinitions kongconsumers.configuration.konghq.com
kubectl delete -n kong customresourcedefinitions kongcredentials.configuration.konghq.com
kubectl delete -n kong customresourcedefinitions kongingresses.configuration.konghq.com
kubectl delete -n kong customresourcedefinitions kongplugins.configuration.konghq.com
kubectl delete -n kong clusterroles kong-ingress-clusterrole
kubectl delete -n kong configmaps kong-server-blocks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment