k8s pod.yml解释

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

posted @ 2019-01-08 15:49  xiao_pai_pai  阅读(365)  评论(0编辑  收藏  举报