83f50b828f
* Example for required node affinity tasks Example for required node affinity tasks * Create pod-nginx-preffered-affinity.yaml * task for assigning pods nodes using node affinity A new task for assigning pods nodes using node affinity * Correcting syntax and spelling Correcting syntax and spelling * Correcting syntax and spelling Correcting syntax and spelling * fix for review comment Fix for review comment * Adding min k8s server version Adding min k8s server version * Correcting small style issues Correcting small style issues. This will also retrigger new build.
19 lines
376 B
YAML
19 lines
376 B
YAML
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
|