Kubernetes Pods operations

Get list of pods:

kubectl get po
Get list of pods in wide format:
kubectl get po -o wide
Get details about specific pod (for example Image used for container):
kubectl describe po {{ pod_name }}
Run pod imperatively:
kubectl run {{ pod_name }} --image={{ pod_image }}
Extract the running pod definition to a file:
kubectl get pod {{ pod_name }} -o yaml > {{ pod_manifest }}.yaml
Generate pod manifest imperatively (do not create the pod itself):
kubectl run {{ pod_name }} --image={{ pod_image }} --dry-run=client -o yaml
Create a pod from manifest file:
kubectl create -f {{ pod_manifest }}.yaml
kubectl apply -f {{ pod_manifest }}.yaml
Edit manifest of running pod:
kubectl edit po {{ pod_name }}
Delete pod:
kubectl delete po {{ pod_name }}