CKAD Exam Question 16

Exhibit:

Task
A deployment is falling on the cluster due to an incorrect image being specified. Locate the deployment, and fix the problem.
  • CKAD Exam Question 17


    Context
    You are tasked to create a secret and consume the secret in a pod using environment variables as follow:
    Task
    * Create a secret named another-secret with a key/value pair; key1/value4
    * Start an nginx pod named nginx-secret using container image nginx, and add an environment variable exposing the value of the secret key key 1, using COOL_VARIABLE as the name for the environment variable inside the pod See the solution below.

    CKAD Exam Question 18

    Refer to Exhibit.

    Task:
    A Dockerfile has been prepared at -/human-stork/build/Dockerfile
    1) Using the prepared Dockerfile, build a container image with the name macque and lag 3.0. You may install and use the tool of your choice.

    2) Using the tool of your choice export the built container image in OC-format and store it at -/human stork/macque 3.0 tar

    CKAD Exam Question 19

    Refer to Exhibit.

    Set Configuration Context:
    [student@node-1] $ | kubectl
    Config use-context k8s
    Context
    A pod is running on the cluster but it is not responding.
    Task
    The desired behavior is to have Kubemetes restart the pod when an endpoint returns an HTTP 500 on the /healthz endpoint. The service, probe-pod, should never send traffic to the pod while it is failing. Please complete the following:
    * The application has an endpoint, /started, that will indicate if it can accept traffic by returning an HTTP 200. If the endpoint returns an HTTP 500, the application has not yet finished initialization.
    * The application has another endpoint /healthz that will indicate if the application is still working as expected by returning an HTTP 200. If the endpoint returns an HTTP 500 the application is no longer responsive.
    * Configure the probe-pod pod provided to use these endpoints
    * The probes should use port 8080

    CKAD Exam Question 20

    Context

    Context
    A project that you are working on has a requirement for persistent data to be available.
    Task
    To facilitate this, perform the following tasks:
    * Create a file on node sk8s-node-0 at /opt/KDSP00101/data/index.html with the content Acct=Finance
    * Create a PersistentVolume named task-pv-volume using hostPath and allocate 1Gi to it, specifying that the volume is at /opt/KDSP00101/data on the cluster's node. The configuration should specify the access mode of ReadWriteOnce . It should define the StorageClass name exam for the PersistentVolume , which will be used to bind PersistentVolumeClaim requests to this PersistenetVolume.
    * Create a PefsissentVolumeClaim named task-pv-claim that requests a volume of at least 100Mi and specifies an access mode of ReadWriteOnce
    * Create a pod that uses the PersistentVolmeClaim as a volume with a label app: my-storage-app mounting the resulting volume to a mountPath /usr/share/nginx/html inside the pod