4.2 Kubernetes Pod and Service Networks Flashcards

1
Q

Como se puede obtener el deployment del operador de red

A

oc get -n openshift-network-operator deployment/network-operator

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

Como se puede obtener la configuracion del operador de red

A

oc describe network.config/cluster

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

Como se pueden poner las variables a un deployment db-pod:

MYSQL_USER=user1 \
MYSQL_PASSWORD=mypa55w0rd \
MYSQL_DATABASE=items

A

oc set env deployment/db-pod \
MYSQL_USER=user1 \
MYSQL_PASSWORD=mypa55w0rd \
MYSQL_DATABASE=items

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

Como se crea un servicio del deployment deployment db-pod

A

oc expose deployment/db-pod

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

Como se obtienen los labels del pod $PODNAME

A

oc get pod $PODNAME –show-labels

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

Como probar desde un pod con imagen ubi9 la conexión al cluster services.svc.cluster.local/3306 y colocar respuesta connection success to db-pod.deploy-services.svc.cluster.local:3306 en caso correcto y connection failed en incorrecto

A

timeout 5 bash -c \
“</dev/tcp/db-pod.deploy-services.svc.cluster.local/3306” && \
echo “connection success to db-pod.deploy-services.svc.cluster.local:3306” || \
echo “connection failed”

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

Como se obtiene la información de red del cluster en json obteniendo el campo spec

A

oc get network cluster -o json | jq .spec

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