SIMULATION For this item, you will have to ssh to the nodes ik8s-master-0 and ik8s-node-0 and complete all tasks on these nodes. Ensure that you return to the base node (hostname: node-1) when you have completed this item. Context As an administrator of a small development team, you have been asked to set up a Kubernetes cluster to test the viability of a new application.
Task
You must use kubeadm to perform this task. Any kubeadm invocations will require the use of the -- ignore-preflight-errors=all option.
Configure the node ik8s-master-O as a master node. .
Join the node ik8s-node-o to the cluster.
Correct Answer. Check the answer in explanation.SIMULATION

Task Create a new PersistentVolumeClaim
1. Name: pv-volume
2. Class: csi-hostpath-sc
3. Capacity: 10Mi
Create a new Pod which mounts the PersistentVolumeClaim as a volume:
1. Name: web-server
2. Image: nginx
3. Mount path: /usr/share/nginx/html
Configure the new Pod to have ReadWriteOnce access on the volume.
Finally, using kubectl edit or kubectl patch expand the PersistentVolumeClaim to a capacity of 70Mi and record that change.
Correct Answer. Check the answer in explanation.SIMULATION

Task
Create a new nginx Ingress resource as follows:
1. Name: ping
2. Namespace: ing-internal
3. Exposing service hi on path /hi using service port 5678

SIMULATION List "nginx-dev" and "nginx-prod" pod and delete those pods
Correct Answer. Check the answer in explanation.SIMULATION
Create a pod with environment variables as var1=value1.Check the environment variable in pod
Correct Answer. Check the answer in explanation.SIMULATION
Create a pod with image nginx called nginx and allow traffic on port 80
Correct Answer. Check the answer in explanation.SIMULATION

Task
Create a new NetworkPolicy named allow-port-from-namespace in the existing namespace echo. Ensure that the new NetworkPolicy allows Pods in namespace my-app to connect to port 9000 of Pods in namespace echo.
Further ensure that the new NetworkPolicy:
1. does not allow access to Pods, which don't listen on port 9000
2. does not allow access from Pods, which are not in namespace my-app
Correct Answer. Check the answer in explanation.SIMULATION

From the pod label name=cpu-utilizer, find pods running high CPU workloads and write the name of the pod consuming most CPU to the file /opt/KUTR00102/KUTR00102.txt (which already exists).
Correct Answer. Check the answer in explanation.SIMULATION
Scale the deployment webserver to 6 pods.
Correct Answer. Check the answer in explanation.SIMULATION
List pod logs named "frontend" and search for the pattern "started" and write it to a file "/opt/error- logs"
Correct Answer. Check the answer in explanation.Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only Linux Foundation exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your CKA exam preparations and Linux Foundation certification application, do not hesitate to visit our Vcedump.com to find your solutions here.