Skip to content

Instantly share code, notes, and snippets.

@timroster
Last active March 26, 2020 16:34
Show Gist options
  • Save timroster/d8fb5d467c586ef540c8f94d02c5c9fc to your computer and use it in GitHub Desktop.
Save timroster/d8fb5d467c586ef540c8f94d02c5c9fc to your computer and use it in GitHub Desktop.

Quick clean up

start off by removing the helm releases that were deployed in the helm lab:

helm delete guestbook-demo --namespace repo-demo
helm delete guestbook-demo --namespace helm-demo

remove the guestbook application components in the default namespace (ok to ignore errors)

cd /userdata/guestbook/v1
kubectl delete -f guestbook-deployment.yaml
kubectl delete -f guestbook-service.yaml
kubectl delete -f redis-slave-service.yaml
kubectl delete -f redis-slave-deployment.yaml 
kubectl delete -f redis-master-service.yaml
kubectl delete -f redis-master-deployment.yaml

check that the guestbook application is gone:

kubectl get pods
No resources found in default namespace.

kubectl get svc
NAME         TYPE        CLUSTER-IP   EXTERNAL-IP   PORT(S)   AGE
kubernetes   ClusterIP   172.21.0.1   <none>        443/TCP   29h

remove the Spring Pet Clinic app

helm delete spring-petclinic-rel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment