Pass the Linux Foundation Kubernetes Administrator CKA Questions and answers with CertsForce

Viewing page 1 out of 3 pages
Viewing questions 1-10 out of questions
Questions # 1:

Create a namespace called 'development' and a pod with image nginx called nginx on this namespace.


Expert Solution
Questions # 2:

Score:7%

Question # 2

Context

An existing Pod needs to be integrated into the Kubernetes built-in logging architecture (e. g. kubectl logs). Adding a streaming sidecar container is a good and common way to accomplish this requirement.

Task

Add a sidecar container named sidecar, using the busybox Image, to the existing Pod big-corp-app. The new sidecar container has to run the following command:

/bin/sh -c tail -n+1 -f /va r/log/big-corp-app.log

Use a Volume, mounted at /var/log, to make the log file big-corp-app.log available to the sidecar container.

Question # 2


Expert Solution
Questions # 3:

Score: 13%

Question # 3

Task

A Kubernetes worker node, named wk8s-node-0 is in state NotReady. Investigate why this is the case, and perform any appropriate steps to bring the node to a Ready state, ensuring that any changes are made permanent.

Question # 3


Expert Solution
Questions # 4:

Get IP address of the pod – “nginx-dev”


Expert Solution
Questions # 5:

Create a pod named kucc8 with a single app container for each of the

following images running inside (there may be between 1 and 4 images specified):

nginx + redis + memcached.


Expert Solution
Questions # 6:

Create a snapshot of the etcd instance running at https://127.0.0.1:2379, saving the snapshot to the file path /srv/data/etcd-snapshot.db.

The following TLS certificates/key are supplied for connecting to the server with etcdctl:

    CA certificate: /opt/KUCM00302/ca.crt

    Client certificate: /opt/KUCM00302/etcd-client.crt

    Client key: Topt/KUCM00302/etcd-client.key


Expert Solution
Questions # 7:

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).


Expert Solution
Questions # 8:

Create 2 nginx image pods in which one of them is labelled with env=prod and another one labelled with env=dev and verify the same.


Expert Solution
Questions # 9:

Configure the kubelet systemd- managed service, on the node labelled with name=wk8s-node-1, to launch a pod containing a single container of Image httpd named webtool automatically. Any spec files required should be placed in the /etc/kubernetes/manifests directory on the node.

You can ssh to the appropriate node using:

[student@node-1] $ ssh wk8s-node-1

You can assume elevated privileges on the node with the following command:

[student@wk8s-node-1] $ | sudo –i


Expert Solution
Questions # 10:

Create a pod with environment variables as var1=value1.Check the environment variable in pod


Expert Solution
Viewing page 1 out of 3 pages
Viewing questions 1-10 out of questions