100% de satisfacción garantizada Inmediatamente disponible después del pago Tanto en línea como en PDF No estas atado a nada 4.2 TrustPilot
logo-home
Examen

CKAD Study Exam Questions & Answers 2024/2025

Puntuación
-
Vendido
-
Páginas
10
Grado
A+
Subido en
26-08-2024
Escrito en
2024/2025

CKAD Study Exam Questions & Answers 2024/2025 Command to start a pod - ANSWERSkubectl run nginx --image=nginx --restart=Never Command to change image of a pod - ANSWERSkubectl set image pod/nginx nginx=nginx:1.7.1 Sequence to ping a pod from busybox - ANSWERSkubectl run busybox --image=busybox --restart=Never --rm -it -- sh # / wget -O- <pod_ip>:80 #/ exit Output nice yaml from a resource - ANSWERSkubectl get pod nginx -o yaml --export Get logs of a previous version of a pod - ANSWERSkubectl logs nginx -p Attach a process to a running pod - ANSWERSkubectl exec -it nginx -- /bin/sh Set an environment variable from command line - ANSWERSkubectl run nginx --image=nginx --env=var1=val1 Multi-container pod - ANSWERSkubectl run busybox --image=busybox -o yaml --dry-run -- /bin/sh -c 'echo hello;' > # vi , Copy + Paste container list and rename the container kubectl create -f kubectl exec -it busybox -c busybox2 -- /bin/bash # Connect to second container Create a pod with labels - ANSWERSkubectl run --image... --restart=Never --labels=app=v1,label2=val2

Mostrar más Leer menos
Institución
CKAD
Grado
CKAD









Ups! No podemos cargar tu documento ahora. Inténtalo de nuevo o contacta con soporte.

Escuela, estudio y materia

Institución
CKAD
Grado
CKAD

Información del documento

Subido en
26 de agosto de 2024
Número de páginas
10
Escrito en
2024/2025
Tipo
Examen
Contiene
Preguntas y respuestas

Temas

Vista previa del contenido

CKAD Study Exam Questions & Answers
2024/2025

Command to start a pod - ANSWERSkubectl run nginx --image=nginx --restart=Never



Command to change image of a pod - ANSWERSkubectl set image pod/nginx nginx=nginx:1.7.1



Sequence to ping a pod from busybox - ANSWERSkubectl run busybox --image=busybox --restart=Never
--rm -it -- sh

# / wget -O- <pod_ip>:80

#/ exit



Output nice yaml from a resource - ANSWERSkubectl get pod nginx -o yaml --export



Get logs of a previous version of a pod - ANSWERSkubectl logs nginx -p



Attach a process to a running pod - ANSWERSkubectl exec -it nginx -- /bin/sh



Set an environment variable from command line - ANSWERSkubectl run nginx --image=nginx --
env=var1=val1



Multi-container pod - ANSWERSkubectl run busybox --image=busybox -o yaml --dry-run -- /bin/sh -c
'echo hello;' > pod.yaml

# vi pod.yaml, Copy + Paste container list and rename the container

kubectl create -f pod.yaml

kubectl exec -it busybox -c busybox2 -- /bin/bash # Connect to second container



Create a pod with labels - ANSWERSkubectl run --image... --restart=Never --labels=app=v1,label2=val2

, Show labels on pods / resource - ANSWERSkubectl get pods --show-labels



Label a running pod - ANSWERSkubectl label po nginx app=v2 --overwrite



Get all pods with a certain label - ANSWERSkubectl get po -lapp



Remove a label from a running pod - ANSWERSkubectl label nginx{1..3} app-



Get documentation for a pod spec - ANSWERSkubectl explain po.spec



Annotate a running pod - ANSWERSkubectl annotate po nginx description='test description'

kubectl annotate po nginx description- # Remove



Create pod with 2 replicas and open port 80 from yaml - ANSWERSkubectl create deploy nginx --
image=... --dry-run -oyaml > deploy.yaml

vi deploy.yaml

# Change replicas: 2

# Under containers list add following

ports:

- containerPort: 80



kubectl create -f deploy.yaml



Check status and history of a deployment - ANSWERSkubectl rollout status deploy nginx

kubectl rollout history deploy nginx



Up replicas of a deployment to 5 - ANSWERSkubectl scale deploy nginx --replicas=5
$8.49
Accede al documento completo:

100% de satisfacción garantizada
Inmediatamente disponible después del pago
Tanto en línea como en PDF
No estas atado a nada


Documento también disponible en un lote

Conoce al vendedor

Seller avatar
Los indicadores de reputación están sujetos a la cantidad de artículos vendidos por una tarifa y las reseñas que ha recibido por esos documentos. Hay tres niveles: Bronce, Plata y Oro. Cuanto mayor reputación, más podrás confiar en la calidad del trabajo del vendedor.
Bensuda Oxford University
Seguir Necesitas iniciar sesión para seguir a otros usuarios o asignaturas
Vendido
835
Miembro desde
3 año
Número de seguidores
445
Documentos
20956
Última venta
4 días hace
ECONOMICS,NURSING,BIOLOGY AND ALL REVISION MATERIALS

DEDICATED TO PROVIDE YOU WITH THE BEST LEARNING MATERIALS THAT WILL IMPROVE YOUR GRADES ,WELCOME TO ALIZGRADES AND LETS DO IT TOGETHER!!! GOODLUCK!!!!!!!

3.7

156 reseñas

5
72
4
24
3
25
2
11
1
24

Recientemente visto por ti

Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes