CKA Exam | Kubernetes CKA Exam Practice Questions | cka exam questions and answers

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 ก.ย. 2024

ความคิดเห็น • 14

  • @anishrana2001ful
    @anishrana2001ful  วันที่ผ่านมา

    Save up to 40% on CKA, CKAD and other Linux foundation certifications, limited time only (2 days).

  • @newacct2574
    @newacct2574 6 หลายเดือนก่อน

    In the sidecar question , the command part in documentation has "-f" flag. But in exam the command they provided didn't have that "-f" flag. With the flag pod status is 2/2 where as without -f it is in crashloopback . So what is recommended in exam. Use the "-f" and make the pod 2/2 or put the command as in question and leave it in 1/2 Crashloop state.

    • @anishrana2001ful
      @anishrana2001ful  6 หลายเดือนก่อน

      Always go with exam task. If in the exam, you will observe without "-f" option then go with without "-f" option. You will notice your container will still produce output. See the below output.
      [root@master1 data]# kubectl get pods -w
      -NAME READY STATUS RESTARTS AGE
      deployment-007-688657cb7-wmpn9 1/2 CrashLoopBackOff 5 (2m20s ago) 5m26s
      deployment-007-688657cb7-wmpn9 1/2 NotReady 6 (2m46s ago) 5m52s
      deployment-007-688657cb7-wmpn9 1/2 CrashLoopBackOff 6 (15s ago) 6m6s-
      [root@master1 data]# kubectl logs deployment-007-688657cb7-wmpn9 -c sidecar-two
      i luv cncf
      i luv cncf
      i luv cncf
      i luv cncf
      [root@master1 data]# kubectl logs deployment-007-688657cb7-wmpn9 -c sidecar-two | wc -l
      18
      [root@master1 data]# kubectl logs deployment-007-688657cb7-wmpn9 -c sidecar-two | wc -l
      35

    • @newacct2574
      @newacct2574 6 หลายเดือนก่อน

      @@anishrana2001ful yes watched your video on sidecar. In exam the -f option was provided but the container was not generating logs. Most probably it was volume mount issue. The volume mount provided with the logacy-app container was the default one which we get while creating a new pod, maybe also needed to remove the existing volume options and put /var/log path there with the new volume name.

  • @anishrana2001ful
    @anishrana2001ful  2 หลายเดือนก่อน

    Save $100 till 30th July 2024 ,use coupon "JULY24"

  • @rupesh4201
    @rupesh4201 7 หลายเดือนก่อน +2

    Thank you, passed the CKA exam - (ETCD and sidecar questions do not work in the exam, if possible create a new video).

    • @anishrana2001ful
      @anishrana2001ful  7 หลายเดือนก่อน

      Heartiest Congratulations
      May I ask you to elaborate what went wrong on etcd and sidecar questions?

    • @rupesh4201
      @rupesh4201 7 หลายเดือนก่อน

      @@anishrana2001ful - for etcd - certs/key fle path not found... I ran with the provided keys/certs and also I tried with the etcd manifest yaml both went have same issue

    • @rupesh4201
      @rupesh4201 7 หลายเดือนก่อน

      @@anishrana2001ful As mentioned in the video I added 6 lines but not worked, error "logs" not found
      - - name: busybox
      image: busybox
      args: [/bin/sh, -c, 'tail -n+1 /var/log/big-corp-app.log']
      volumeMounts:
      - name: logs
      mountPath: /var/log

    • @dangtuan-cntt
      @dangtuan-cntt 6 หลายเดือนก่อน +1

      Are the CKA exam questions similar to those in the video?

    • @rupesh4201
      @rupesh4201 6 หลายเดือนก่อน

      yes@@dangtuan-cntt

  • @SunshineTam-m2j
    @SunshineTam-m2j 7 หลายเดือนก่อน +1

    For the question where they ask you to monitor pod and extract log lines corresponding to the error . Did they not only want that one specific line or did they ask for the whole log of the pod? video time 9:11

    • @anishrana2001ful
      @anishrana2001ful  7 หลายเดือนก่อน

      Ideally, you should grep the log line only. But in the exam question,you may observe only these logs ....
      These questions and answers are just a tips and tricks. Which will ultimately help you to clear the exam.

    • @SunshineTam-m2j
      @SunshineTam-m2j 7 หลายเดือนก่อน +1

      @@anishrana2001ful Thank you , they did ask this specific question , so I was wondering if I misunderstood what they wanted . Thanks for the amazing context . Looking forward to the rest