apiVersion: v1
kind: Pod
metadata:
name: yueying
namespace: kube-public
labels:
name: testpods
spec:
containers:
- name: testpods
image: nginx
ports:
- containerPort: 80
hostPort: 8781
protocol: TCP
imagePullPolicy: IfNotPresent
nodeSelector:
kubernetes.io/hostname: 10.83.52.105
k8s pod.yml解释
猜你喜欢
转载自www.cnblogs.com/xiaopaipai/p/10239387.html
今日推荐
周排行