2. Kubernetes and OpenShift Command-Line Interfaces and APIs Flashcards

1
Q

Como obtener version de kubectl

A

kubectl version –client

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

Como se explica un concepto de kubernetes

A

kubectl explain pod

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

Como se crea un proyecto nuevo

A

oc new-project myapp

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

Como se obtiene la ruta donde esta control-plane ejecutandose

A

oc cluster-info

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

Como se obtienen los recursos y sus versiones

A

oc api-versions

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

Como se obtienen los cluster operators

A

oc get clusteroperators

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

Como se obtienen los pods

A

oc get pods

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

Como se obtienen los recursos mas importantes

A

oc get all

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

Este comando obtiene información adicional del recurso. Obtiene los datos del recurso por tipo iterando entre los diferentes recursos de este tipo.

A

oc describe TYPE NAME

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

Como se describen los campos y uso de un recurso de openshift

A

oc explain TYPE

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

Como usar token para login

A

oc login –token=TOKEN https://api.ocp4.example.com:66443

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

Como se obtiene las versiones de openshift client, kubernetes, kustomize y server

A

oc version

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

Como obtener nodos

A

oc get nodes

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

Explica tipo services

A

oc explain services

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

Como se crea un grupo de recursos a partir de un archivo yaml

A

oc create -f YAMLFILE.yaml

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

Como se borra un recurso

A

oc delete TYPE NAME

17
Q

Como se obtiene el estado actual del proyecto

A

oc status

18
Q
A