CKA Exam Question 56

Create a nginx pod that will be deployed to node with the label
"gpu=true"
  • CKA Exam Question 57

    Score:7%

    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.

    CKA Exam Question 58

    Create a pod with init container which create a file "test.txt"
    in "workdir" directory. Main container should check a file
    "test.txt" exists and execute sleep 9999 if the file exists.
  • CKA Exam Question 59

    Score: 7%

    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:
    * does not allow access to Pods, which don't listen on port 9000
    * does not allow access from Pods, which are not in namespace my-app

    CKA Exam Question 60

    Create the service as type NodePort with the port 32767 for the nginx pod with the pod selector app: my-nginx