From fff1dcf9c1b297414b686f13f1c5b1b706957262 Mon Sep 17 00:00:00 2001 From: Jihoon Seo Date: Tue, 24 May 2022 18:37:50 +0900 Subject: [PATCH] [ko] Add missing example YAML file --- .../pods/pod-with-affinity-anti-affinity.yaml | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 content/ko/examples/pods/pod-with-affinity-anti-affinity.yaml diff --git a/content/ko/examples/pods/pod-with-affinity-anti-affinity.yaml b/content/ko/examples/pods/pod-with-affinity-anti-affinity.yaml new file mode 100644 index 0000000000..a7d14b2d6f --- /dev/null +++ b/content/ko/examples/pods/pod-with-affinity-anti-affinity.yaml @@ -0,0 +1,32 @@ +apiVersion: v1 +kind: Pod +metadata: + name: with-affinity-anti-affinity +spec: + affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - key: kubernetes.io/os + operator: In + values: + - linux + preferredDuringSchedulingIgnoredDuringExecution: + - weight: 1 + preference: + matchExpressions: + - key: label-1 + operator: In + values: + - key-1 + - weight: 50 + preference: + matchExpressions: + - key: label-2 + operator: In + values: + - key-2 + containers: + - name: with-node-affinity + image: k8s.gcr.io/pause:2.0 \ No newline at end of file