4. Deploy Managed and Networked Applications on Kubernetes Flashcards

1
Q

Como se crea el deployment my-app con la imagen example.com/my-image:dev

A

oc create deployment my-app –image example.com/my-image:dev

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Como se coloca el label TEAM=read en el deployment my-app

A

oc set env deployment/my-app TEAM=red

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Como se ejecuta el pod example-pod con run, utilizando la imagen registry.access.redhat.com/ubi8/httpd-24 puerto 8080 y la variable GREETING=’Hello from awesome container’

A

oc run example-pod
–image=registry.access.redhat.com/ubi8/httpd-24
–env GREETING=’Hello from the awesome container’
–port 8080

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Como se puede generar el yaml con esta ejecución de pod

oc run example-pod \
–image=registry.access.redhat.com/ubi8/httpd-24 \
–env GREETING=’Hello from the awesome container’ \
–port 8080

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Como se crean los recursos del archivo yaml my-app-deployment.yaml

A

oc create -f my-app-deployment.yaml

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Como se crea la app con el archivo my-app.yaml

A

oc new-app –file=./my-app.yaml

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Como se puede crear new-app con el repositorio de GitHub https://github.com/apache/httpd.git#2.4.56

A

oc new-app https://github.com/apache/httpd.git#2.4.56

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Como se pueden obtener las cuentas de servicio

A

oc get serviceaccounts

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Como se crea la app new-app con el template mysql-persistent usando las variables MYSQL_USER=developer y MYSQL_PASSWORD=developer

A

oc new-app -l team=red –template mysql-persistent \
-p MYSQL_USER=developer \
-p MYSQL_PASSWORD=developer

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Como se crea la app con new-app usando esta imagen registry.ocp4.example.com:8443/rhel9/mysql-80:1 y las variables MYSQL_USER=developer, MYSQL_PASSWORD=developer, MYSQL_ROOT_PASSWORD=redhat

A

oc new-app –name db-image -l team=blue \
–image registry.ocp4.example.com:8443/rhel9/mysql-80:1 \
-e MYSQL_USER=developer \
-e MYSQL_PASSWORD=developer \
-e MYSQL_ROOT_PASSWORD=redhat

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Como se obtienen los pods con el label team

A

oc get pods -L team

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Como se puede obtener el readiness probe para el deployment config mysql con jsonpath y jq para formatear

A

oc get pods -l deploymentconfig=mysql \
-o jsonpath=’{.items[0].spec.containers[0].readinessProbe}’ | jq

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Como se obtienen los limites del deploymentconfig mysql con jsonpath y jq

A

oc get pods -l deploymentconfig=mysql \
-o jsonpath=’{.items[0].spec.containers[0].resources.limits}’ | jq

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Que recursos no se obtienen si se eliminan u obtienen con oc get all o oc delete all

A

secret,pvc

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

que recurso es is

A

imagestream

How well did you know this?
1
Not at all
2
3
4
5
Perfectly