kubernetes-the-hard-way/docs/09-cleanup.md

924 B

Cleaning Up

Virtual Machines

gcloud compute instances delete \
  controller0 controller1 controller2 \
  worker0 worker1 worker2 \
  etcd0 etcd1 etcd2

Networking

gcloud compute forwarding-rules delete kubernetes-rule
gcloud compute target-pools delete kubernetes-pool
gcloud compute http-health-checks delete kube-apiserver-check
gcloud compute addresses delete kubernetes
gcloud compute firewall-rules delete \
  kubernetes-allow-api-server \
  kubernetes-allow-healthz \
  kubernetes-allow-icmp \
  kubernetes-allow-internal \
  kubernetes-allow-rdp \
  kubernetes-nginx-service \
  kubernetes-allow-ssh
gcloud compute routes delete \
  kubernetes-route-10-200-0-0-24 \
  kubernetes-route-10-200-1-0-24 \
  kubernetes-route-10-200-2-0-24
gcloud compute networks subnets delete kubernetes
gcloud compute networks delete kubernetes