Kubernetes Pod Operations: Difference between revisions
Jump to navigation
Jump to search
Line 20: | Line 20: | ||
=Removing an Individual Pod= | =Removing an Individual Pod= | ||
Remove | ==Remove Immediately== | ||
kubectl delete pod ''pod-name'' --grace-period=0 --force | kubectl delete pod ''pod-name'' --grace-period=0 --force |
Revision as of 01:33, 7 September 2019
Internal
Get Information about Pods
kubectl get pods|po
kubectl describe pod <pod-name>
kubectl log <pod-name>
Create Pods
A singleton pod can be created by posting a pod manifest to the API server with:
kubectl apply -f <pod-manifest-file-name>.yaml
Removing an Individual Pod
Remove Immediately
kubectl delete pod pod-name --grace-period=0 --force