Exercise 2.5: Create a Simple Deployment
kubectl create deployment nginx --image=nginxkubectl get deploy,pod -l app=nginxkubectl describe deployment nginxkubectl describe pod $(kubectl get pod -l app=nginx -o=jsonpath='{.items[0].metadata.name}')kubectl get namespacekubectl get pod -n kube-systemkubectl get pod -n fakenamespace -v 6kubectl get pod --all-namespaces -v 6kubectl get deploy,rs,po,svc,epkubectl delete rs $(kubectl get rs -l app=nginx -o=jsonpath='{.items[0].metadata.name}')kubectl get rs -l app=nginxkubectl delete deploy nginxkubectl get deploy,rs,po,svc,epkubectl delete svc nginxkubectl get all
Last updated