首页 > 技术文章 > k8s pod.yml解释

xiaopaipai 2019-01-08 15:49 原文

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

推荐阅读