Implementacion De Aplicaciones Contenedorizadas En Openshift Flashcards

1
Q

Cómo se hace forward de un puerto en openshift

A

oc port-forward mysql-openshift-1-glqrp 3306:3306

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

Describe el yaml de un recurso tipo service con el puerto 3306 forward al nodo

A
{
    "kind": "Service", 1
    "apiVersion": "v1",
    "metadata": {
        "name": "quotedb" 2
    },
    "spec": {
        "ports": [ 3
            {
                "port": 3306,
                "targetPort": 3306
            }
        ],
        "selector": {
            "name": "mysqldb" 4
        }
    }
}
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Describe un ejemplo de yaml tipo pod

A
apiVersion: v1
kind: Pod1
metadata:
  name: wildfly2
  labels:
    name: wildfly3
spec:
  containers:
    - resources:
        limits :
          cpu: 0.5
      image: do276/todojee
      name: wildfly
      ports:
        - containerPort: 80804
          name: wildfly
      env:5
        - name: MYSQL_ENV_MYSQL_DATABASE
          value: items
        - name: MYSQL_ENV_MYSQL_USER
          value: user1
        - name: MYSQL_ENV_MYSQL_PASSWORD
          value: mypa55
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Como se crea una aplicación nueva con la etiqueta db=mysql

A

oc new-app mysql –as-deployment-config \

> MYSQL_USER=user MYSQL_PASSWORD=pass MYSQL_DATABASE=testdb -l db=mysql

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

Cómo se crea un recurso a partir de un esqueleto

A

oc create -f FILE

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

Cómo se crea un archivo esqueleto yaml de un recuso

A

oc get dc/deployment -o yaml>myfile

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

Cómo se crea una aplicación con su registro en https://github.com/openshift/ruby-hello-world

A

oc new-app https://github.com/openshift/ruby-hello-world –name=ruby-hello –as-deployment-config

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