"쿠버네티스 tolerations"의 두 판 사이의 차이

36번째 줄: 36번째 줄:
     operator: "Exists"
     operator: "Exists"
     effect: "NoSchedule"
     effect: "NoSchedule"
</syntaxhighlight>
==Deployment 예시==
<syntaxhighlight lang='yaml' highlight='18-20'>
apiVersion: apps/v1
kind: Deployment
metadata:
  name: nginx-deployment
spec:
  selector:
    matchLabels:
      app: nginx
  replicas: 10
  template:
    metadata:
      labels:
        app: nginx
    spec:
      containers:
      - name: nginx
        image: nginx
      tolerations:
      - effect: NoSchedule
        operator: Exists
</syntaxhighlight>
</syntaxhighlight>



2021년 9월 30일 (목) 14:13 판

1 개요

쿠버네티스 tolerations
k8s 톨러레이션
spec:
  nodeSelector:
    node-role.kubernetes.io/master: ""
  tolerations:
  - effect: NoSchedule
    operator: Exists
spec:
  nodeSelector:
    node-role.kubernetes.io/master: ""
  tolerations:
  - effect: NoSchedule
    key: node-role.kubernetes.io/master

2 Pod 예시

apiVersion: v1
kind: Pod
metadata:
  name: nginx
  labels:
    env: test
spec:
  containers:
  - name: nginx
    image: nginx
  tolerations:
  - key: "example-key"
    operator: "Exists"
    effect: "NoSchedule"

3 Deployment 예시

apiVersion: apps/v1 
kind: Deployment
metadata:
  name: nginx-deployment
spec:
  selector:
    matchLabels:
      app: nginx
  replicas: 10
  template:
    metadata:
      labels:
        app: nginx
    spec:
      containers:
      - name: nginx
        image: nginx
      tolerations:
      - effect: NoSchedule
        operator: Exists

4 같이 보기

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