b5f6df9926
* Consolidate YAML files [part-8] This PR exacts the YAML files referenced from the following subdirs: - docs/concepts/workloads - docs/concepts/configuration - docs/concepts/policy The following problems are fixed: - docs/concepts/workloads/controllers/ doesnt have a 'cronjob.yaml for test - the exactly same `pod.yaml` was used in both the task/config-pod-container topic and the concepts/configuration topics. * Update examples_test.go * Add missing yaml file.
26 lines
658 B
YAML
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 |