쿠버네티스 nodeSelector

(쿠버네티스 NodeSelector에서 넘어옴)

1 개요[ | ]

spec.nodeSelector
nodeSelector

2 Pod[ | ]

apiVersion: v1
kind: Pod
metadata:
  name: nginx
  labels:
    env: test
spec:
  containers:
  - name: nginx
    image: nginx
    imagePullPolicy: IfNotPresent
  nodeSelector:
    disktype: ssd

3 Deployment[ | ]

apiVersion: apps/v1
kind: Deployment
metadata:
  name: nginx
spec:
  selector:
    matchLabels:
      env: test
  replicas: 3
  template:
    metadata:
      labels:
        env: test
    spec:
      nodeSelector:
        disktype: ssd
      containers:
      - name: nginx
        image: nginx

4 예시[ | ]

$ kubectl get ds kube-proxy -n kube-system -oyaml | grep nodeSelector: -A2
      nodeSelector:
        kubernetes.io/os: linux
        node.kubernetes.io/kube-proxy-ds-ready: "true"

5 같이 보기[ | ]

6 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}