Bhushan G:
Hi @Tej_Singh_Rana @Vijin Palazhi I am taking mock exam 3
For Question Number 6 regarding tainting nodes.
after adding toleration while I try to run a pod on node01 its not getting scheduled on node01 it runs on node02 instead. Below is the code which I tried.
apiVersion: v1
kind: Pod
metadata:
name: prod-redis
spec:
containers:
- name: prod-redis
image: redis:alpine
tolerations:
- effect: NoSchedule
key: env_type
operator: Equal
value: production
But later it worked while I added the nodeSelector parameter.
apiVersion: v1
kind: Pod
metadata:
name: prod-redis
spec:
containers:
- image: redis:alpine
name: prod-redis
nodeSelector:
http://kubernetes.io/hostname|kubernetes.io/hostname: node01
tolerations: - effect: NoSchedule
key: env_type
value: production
operator: Equal
where it is going wrong…?