CKAD Exam Question 1

Exhibit:

Context
A container within the poller pod is hard-coded to connect the nginxsvc service on port 90 . As this port changes to 5050 an additional container needs to be added to the poller pod which adapts the container to connect to this new port. This should be realized as an ambassador container within the pod.
Task
* Update the nginxsvc service to serve on port 5050.
* Add an HAproxy container named haproxy bound to port 90 to the poller pod and deploy the enhanced pod. Use the image haproxy and inject the configuration located at /opt/KDMC00101/haproxy.cfg, with a ConfigMap named haproxy-config, mounted into the container so that haproxy.cfg is available at /usr/local/etc/haproxy/haproxy.cfg. Ensure that you update the args of the poller container to connect to localhost instead of nginxsvc so that the connection is correctly proxied to the new service endpoint. You must not modify the port of the endpoint in poller's args . The spec file used to create the initial poller pod is available in /opt/KDMC00101/poller.yaml
  • CKAD Exam Question 2

    Exhibit:

    Task
    You are required to create a pod that requests a certain amount of CPU and memory, so it gets scheduled to-a node that has those resources available.
    * Create a pod named nginx-resources in the pod-resources namespace that requests a minimum of 200m CPU and 1Gi memory for its container
    * The pod should use the nginx image
    * The pod-resources namespace has already been created
  • CKAD Exam Question 3

    Exhibit:

    Task
    Create a new deployment for running.nginx with the following parameters;
    * Run the deployment in the kdpd00201 namespace. The namespace has already been created
    * Name the deployment frontend and configure with 4 replicas
    * Configure the pod with a container image of lfccncf/nginx:1.13.7
    * Set an environment variable of NGINX__PORT=8080 and also expose that port for the container above
  • CKAD Exam Question 4

    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 5

    Context
    Anytime a team needs to run a container on Kubernetes they will need to define a pod within which to run the container.
    Task
    Please complete the following:
    * Create a YAML formatted pod manifest
    /opt/KDPD00101/podl.yml to create a pod named app1 that runs a container named app1cont using image Ifccncf/arg-output
    with these command line arguments: -lines 56 -F
    * Create the pod with the kubect1 command using the YAML file created in the previous step
    * When the pod is running display summary data about the pod in JSON format using the kubect1 command and redirect the output to a file named /opt/KDPD00101/out1.json
    * All of the files you need to work with have been created, empty, for your convenience