pod
xxxxxxxxxx
kubectl run 'name' --image 'image' # create a pod
kubectl run 'name' --image 'image' -oyaml --dry-run > 'name'.yaml # create non bloated pod file
kubectl get po # get pods
kubectl describe po 'name' # info pod
kubectl edit po 'name' # edit pod 'name'
kubectl delete po 'name' / kubectl delete po 'name' --force # delete pod
### pod template ###
apiVersion: v1
kind: Pod
metadata:
name: nginx
spec:
containers:
- name: nginx
image: nginx:1.14.2
ports:
- containerPort: 80
Create pod / get pod / describe pod / edit pod / delete pod / pod template