$ nano pod.yaml
apiVersion: v1
kind: Pod
metadata:
name: nginx
labels:
env: test
spec:
containers:
- name: nginx
image: nginx
$ kubectl apply -f pod.yaml
## or
$ kubectl create -f pod.yaml
$ kubectl apply -f pod.yaml
## 查看該pod詳細資訊
$ kubectl describe po <pod-name>
## 刪除pod
$ kubectl delete po
## 查看pod log
$ kubectl logs <pod-name>
$ nano static-pod.yaml
apiVersion: v1
kind: Pod
metadata:
name: static-pod-example
spec:
containers:
- name: nginx
image: nginx
ports:
- containerPort: 80
$ kubectl apply -f pod.yaml
## or
$ kubectl create -f pod.yaml
$ kubectl apply -f pod.yaml
$ systemctl restart kubelet
https://ithelp.ithome.com.tw/articles/10262662?sc=rss.iron
https://kubernetes.io/zh-cn/docs/tasks/configure-pod-container/static-pod/
https://kubernetes.io/docs/concepts/workloads/pods/