Pod 的简单使用
单个容器
apiVersion: v1
kind: Pod
metadata:
name: nginx
spec:
containers:
- name: nginx
image: nginx:1.14.2
ports:
- containerPort: 80$ kubectl create -f simple-pod.yaml
pod/nginx created
$ kubectl get pods nginx
NAME READY STATUS RESTARTS AGE
nginx 0/1 ImagePullBackOff 0 35s多个容器
最后更新于