"K8s topologySpreadConstraints"의 두 판 사이의 차이

10번째 줄: 10번째 줄:
     foo: bar
     foo: bar
spec:
spec:
   ...
   containers:
  - name: pause
    image: registry.k8s.io/pause:3.1
   topologySpreadConstraints:
   topologySpreadConstraints:
   - maxSkew: 1
   - maxSkew: 1
24번째 줄: 26번째 줄:
       matchLabels:
       matchLabels:
         foo: bar
         foo: bar
  containers:
  - name: pause
    image: registry.k8s.io/pause:3.1
</syntaxhighlight>
</syntaxhighlight>



2023년 1월 25일 (수) 13:54 판

1 개요

k8s topologySpreadConstraints
kind: Pod
apiVersion: v1
metadata:
  name: mypod
  labels:
    foo: bar
spec:
  containers:
  - name: pause
    image: registry.k8s.io/pause:3.1
  topologySpreadConstraints:
  - maxSkew: 1
    topologyKey: zone
    whenUnsatisfiable: DoNotSchedule
    labelSelector:
      matchLabels:
        foo: bar
  - maxSkew: 1
    topologyKey: node
    whenUnsatisfiable: DoNotSchedule
    labelSelector:
      matchLabels:
        foo: bar

2 같이 보기

3 참고

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