Skip to content

Instantly share code, notes, and snippets.

View dangtrinhnt-mmt's full-sized avatar
🐲

Jin Nguyen dangtrinhnt-mmt

🐲
View GitHub Profile
@dangtrinhnt-mmt
dangtrinhnt-mmt / cleanup_kong_ingress_controller.sh
Created October 7, 2019 08:24
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