Professional Documents
Culture Documents
apiVersion: v1
kind: Pod
metadata:
name: mypod
spec:
containers:
- name: nginx-container
image: nginx:1.7.9
Apply
kubectl get pod
kubectl get pod -o wide
Run the Pod definition file
kubectl apply -f <file name>
kubectl get pod
kubectl get pod -o wide
kubectl describe pod <Pod Name>
kubectl delete pod <Pod Name>
________________________________________
kubectl get ns
Deleting Pod
Deleting Namespace