Files
website/content/id/examples/pods/pod-with-node-affinity.yaml
marchellametta 511e7ab541 Translate Assign Pod Node to Bahasa Indonesia (#16168)
* ID translation for assign-pod-node

* fix typo

* add pods/pod-nginx.yaml example file

* add pods/pod-with-node-affinity.yaml example file

* add pods/pod-with-pod-affinity.yaml example file

* Apply suggestions from code review

Co-Authored-By: Irvi Aini <7439590+irvifa@users.noreply.github.com>

* tidy up words following code review suggestion
2019-09-11 05:45:23 -07:00

26 lines
658 B
YAML

apiVersion: v1
kind: Pod
metadata:
name: with-node-affinity
spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/e2e-az-name
operator: In
values:
- e2e-az1
- e2e-az2
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 1
preference:
matchExpressions:
- key: another-node-label-key
operator: In
values:
- another-node-label-value
containers:
- name: with-node-affinity
image: k8s.gcr.io/pause:2.0