Cleanup

In this activity we will perform the clean up by deleting busybox deployment:

You should be on k8s-kops-mgmt-cloud9-instance:

  • Delete busybox applicaiton/deployment:

    kubectl delete deployment kops-busybox
    
    Expected output:
    
    ec2-user:~/environment $ kubectl delete deployment kops-busybox
    deployment.extensions "kops-busybox" deleted
    ec2-user:~/environment $
    
  • Verify deployment was deleted:

    kubectl get deployment
    kubectl get pods -n default -o wide
    
    ec2-user:~/environment $ kubectl get deployment
    No resources found.
    ec2-user:~/environment $ kubectl get pods -n default -o wide
    No resources found.
    ec2-user:~/environment $
    
  • While pods are being deleted you might see STATUS as Terminating