CKAD Exam questions Part 5

Поделиться
HTML-код
  • Опубликовано: 24 ноя 2024

Комментарии • 16

  • @anishrana2001ful
    @anishrana2001ful  6 месяцев назад +3

    For Cronjob Question.....
    kubectl create cronjob hellocron --image=busybox --schedule="*/1 * * * *" -o yaml --dry-run=client > cronjob.yaml
    vi cronjob.yaml
    apiVersion: batch/v1
    kind: CronJob
    metadata:
    creationTimestamp: null
    name: hellocron
    spec:
    jobTemplate:
    metadata:
    creationTimestamp: null
    name: hellocron
    spec:
    activeDeadlineSeconds: 28 # This is line added.
    template:
    metadata:
    creationTimestamp: null
    spec:
    containers:
    - image: busybox
    name: hellocron
    resources: {}
    restartPolicy: OnFailure
    schedule: '*/1 * * * *'
    status: {}
    kubectl apply -f cronjob.yaml

    • @mohammedziauddin8773
      @mohammedziauddin8773 5 месяцев назад +1

      Also you need to run command “uname” as specified in the question

  • @rahul95968
    @rahul95968 Месяц назад +1

    I appeared for my CKAD exam and had a question for api deprivation in which a deployment yaml with version 1.16 was given and I need to deploy the deployment in current K8s version.
    I tried with kubectl convert command to convert it but got an error kubectl convert command not found.
    What shall I have done to solve the question??

  • @mandarkulkarni8443
    @mandarkulkarni8443 2 месяца назад

    For the last question (pods failing liveness probe), I believe the expectation is to provide a more generic solution.
    E.g. Give me a command to find all pods that are restarting due to liveness probe failures.

  • @techenthusiast8300
    @techenthusiast8300 6 месяцев назад +1

    For crnjob question you need to add “activeDeadlineSeconds: 28” in yaml to terminate the process after 28 sec if not completed as asked in question

    • @anishrana2001ful
      @anishrana2001ful  6 месяцев назад +1

      yes, you are right. Thanks, it will helps other too.

    • @HarpreetSingh-li7ok
      @HarpreetSingh-li7ok 2 месяца назад

      Sir baaki questions ke answers bhi chahiye?.How can we get them

    • @anishrana2001ful
      @anishrana2001ful  2 месяца назад

      I know only these. If you are aware of more questions then you can share with me. I will create a new video.....

  • @denden-oh7yk
    @denden-oh7yk 6 месяцев назад

    Hello.
    For crnjob question you also forgot to add a command (command "uname") to execute in the yaml file

  • @Torrenting-Legally
    @Torrenting-Legally 3 месяца назад

    Hi, are these questions from killshell practice tests?

  • @dev_maftuna-tg6jv
    @dev_maftuna-tg6jv 5 месяцев назад

    In the exam if they do not ask to configure command, can we just use args commands instead of editing yaml file : like this:
    K run app1 --image=nginx:1.25.4 -o yaml -dry-run-client - - -R 7 -testgreen> /var/data/pod.yaml

    • @anishrana2001ful
      @anishrana2001ful  5 месяцев назад

      From which question dear... I have uploaded many questions...... Thanks for your understanding