4.1 Manage Long-lived and Short-lived Applications Using the Kubernetes Workload API Flashcards

1
Q

Como crear un job date-job con la imagen registry.access.redhat.com/ubi8/ubi para ejecutar date

A

oc create job date-job –image registry.access.redhat.com/ubi8/ubi – /bin/bash -c “date”

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

Como se puede crear un cronjob de la imagen registry.access.redhat.com/ubi8/ubi para programar cada minuto “date”

A

oc create cronjob date-cronjob
–image registry.access.redhat.com/ubi8/ubi
–schedule “*/1 * * * *”
– date

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

Como se puede crear un deployment my-deployment con el registry registry.access.redhat.com/ubi8/ubi y 3 replicas

A

oc create deployment
my-deployment
–image registry.access.redhat.com/ubi8/ubi
–replicas 3

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

Ejemplo de replicaSet con 1 replica labels app:http y pod-template-hash:

A

apiVersion: apps/v1
kind: ReplicaSet
…output omitted…
spec:
replicas: 1
selector:
matchLabels:
app: httpd
pod-template-hash: 7c84fbdb57
…output omitted…

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