kill pod kubectl command 1

kill pod kubectl command

#To delete a pod just do following šŸ˜‰
kubectl delete pod pod_name

Here is what the above code is Doing:
1. Create a pod with the name “my-pod”
2. The pod has a container named “my-container”
3. The container runs the nginx image
4. The container exposes port 80
5. The container has a volume mounted at /usr/share/nginx/html
6. The volume is an emptyDir volume
7. The volume is mounted read-write
8. The pod has a restart policy of Never
9. The pod has a label of “app=demo”
10. The pod has a label of “env=test”

Similar Posts