From e334f8306bf9d1cc523123a772244a27ed7e84f2 Mon Sep 17 00:00:00 2001 From: Luis Felipe Rosa de Oliveira Date: Mon, 21 Oct 2024 23:52:54 -0300 Subject: [PATCH] add manifestos de exemplo --- .../pods/pod-nginx-preferred-affinity.yaml | 19 +++++++++++++++++++ .../pods/pod-nginx-required-affinity.yaml | 18 ++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 content/pt-br/examples/pods/pod-nginx-preferred-affinity.yaml create mode 100644 content/pt-br/examples/pods/pod-nginx-required-affinity.yaml diff --git a/content/pt-br/examples/pods/pod-nginx-preferred-affinity.yaml b/content/pt-br/examples/pods/pod-nginx-preferred-affinity.yaml new file mode 100644 index 0000000000..183ba9f014 --- /dev/null +++ b/content/pt-br/examples/pods/pod-nginx-preferred-affinity.yaml @@ -0,0 +1,19 @@ +apiVersion: v1 +kind: Pod +metadata: + name: nginx +spec: + affinity: + nodeAffinity: + preferredDuringSchedulingIgnoredDuringExecution: + - weight: 1 + preference: + matchExpressions: + - key: disktype + operator: In + values: + - ssd + containers: + - name: nginx + image: nginx + imagePullPolicy: IfNotPresent diff --git a/content/pt-br/examples/pods/pod-nginx-required-affinity.yaml b/content/pt-br/examples/pods/pod-nginx-required-affinity.yaml new file mode 100644 index 0000000000..a3805eaa8d --- /dev/null +++ b/content/pt-br/examples/pods/pod-nginx-required-affinity.yaml @@ -0,0 +1,18 @@ +apiVersion: v1 +kind: Pod +metadata: + name: nginx +spec: + affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - key: disktype + operator: In + values: + - ssd + containers: + - name: nginx + image: nginx + imagePullPolicy: IfNotPresent