CKA Questions I need to spend more time on
Taints and Tolerations
Create another pod named bee with the nginx image, which has a toleration set to the taint mortein.
Struggled
This is a question I struggled on
Edit the file and add the below
apiVersion: v1
kind: Pod
metadata:
creationTimestamp: null
labels:
run: bee
name: bee
spec:
containers:
- image: nginx
name: bee
resources: {}
tolerations:
- key: "spray"
operator: "Equal"
value: "mortein"
effect: "NoSchedule"
dnsPolicy: ClusterFirst
restartPolicy: Always
status: {}
Which nodes can the pods for the blue deployment be placed on?
Struggled
This is a question I struggled on
I made the assumption that we can simply look at the roles of the nodes
Check if controlplane
and node01
have any taints on them that will prevent the pods to be scheduled on them. If there are no taints, the pods can be scheduled on either node.
So run the following command to check the taints on both nodes.
Want to make this site better? Open a PR or help fund hosting costs