Pod
作者:互联网
目录
Yaml
apiVersion: v1
kind: Pod
metadata:
name: my-pod
labels:
app: ngx
tier: frontend
spec:
containers:
- name: ngx-container
image: nginx
操作
kubectl apply -f pod.yaml
kubectl describe pod my-pod -n default -o wide
kubectl delete -f pod.yaml
标签:kubectl,name,Yaml,yaml,Pod,ngx,pod 来源: https://www.cnblogs.com/abc608088/p/16485888.html