<< Prev Question Next Question >>

Question 13/25

Ensure a single instance of pod nginx is running on each node of the Kubernetes cluster where nginx also represents the Image name which has to be used. Do not override any taints currently in place.
Use DaemonSet to complete this task and use ds-kusc00201 as DaemonSet name.

Recent Comments (The most recent comments are at the top.)

Kut Zhang - Oct 18, 2022

The answer is wrong. The right answer is:
1. check traints of all contol-plane or master node.
2. edit daemon deployment file, just add traints of master node or control-plane node as tolerationcs, like this:
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: ds-kusc00201
namespace: cka
labels:
k8s-app: ds-kusc00201
spec:
selector:
matchLabels:
name: ds-kusc00201
template:
metadata:
labels:
name: ds-kusc00201
spec:
tolerations:
- operator: Exists
effect: NoSchedule
containers:
- name: nginx
image: nginx
3. apply it, and check it:
kubectl get pod -o wide -l name=ds-kusc00201

LEAVE A REPLY

Your email address will not be published. Required fields are marked *

Question List (25q)
Question 1: Create a nginx pod with label env=test in engineering namesp...
Question 2: List the nginx pod with custom columns POD_NAME and POD_STAT...
2 commentQuestion 3: Print pod name and start time to "/opt/pod-status" file...
Question 4: Score: 13% (Exhibit) Task A Kubernetes worker node, named wk...
Question 5: Schedule a pod as follows: Name: nginx-kusc00101 Image: ngin...
Question 6: Scale the deployment webserver to 6 pods....
Question 7: List pod logs named "frontend" and search for the pattern "s...
1 commentQuestion 8: Get list of all the pods showing name and namespace with a j...
Question 9: Create a pod with image nginx called nginx and allow traffic...
Question 10: Create a busybox pod that runs the command "env" and save th...
Question 11: List all persistent volumes sorted by capacity, saving the f...
1 commentQuestion 12: Given a partially-functioning Kubernetes cluster, identify s...
1 commentQuestion 13: Ensure a single instance of pod nginx is running on each nod...
Question 14: Score: 7% (Exhibit) Task Create a new nginx Ingress resource...
Question 15: Check the Image version of nginx-dev pod using jsonpath...
Question 16: List "nginx-dev" and "nginx-prod" pod and delete those pods...
Question 17: List all the pods sorted by name...
Question 18: Create a snapshot of the etcd instance running at https://12...
Question 19: Score: 4% (Exhibit) Task Scale the deployment presentation t...
Question 20: Create a pod that echo "hello world" and then exists. Have t...
Question 21: Create and configure the service front-end-service so it's a...
Question 22: Score: 7% (Exhibit) Task Reconfigure the existing deployment...
Question 23: Configure the kubelet systemd- managed service, on the node ...
Question 24: Create a pod with environment variables as var1=value1.Check...
Question 25: Create an nginx pod and list the pod with different levels o...