primero armamos el projecto glpi
oc new-project glpi
y luego.
oc new-app docker.io/diouxx/glpi
(Tome esta por que parece ser la oficial )
luego, las rutinas de siempre
[root@qqmelo1c ~]# oc get pods
NAME READY STATUS RESTARTS AGE
glpi-1-deploy 1/1 Running 0 13s
glpi-1-kcbkm 0/1 ContainerCreating 0 10s
[root@qqmelo1c ~]# oc describe pod glpi-1-kcbkm
Name: glpi-1-kcbkm
Namespace: glpi
Priority: 0
PriorityClassName:
Node: qqmelo1c.mylabserver.com/172.31.38.153
Start Time: Thu, 04 Apr 2019 02:47:47 +0000
Labels: app=glpi
deployment=glpi-1
deploymentconfig=glpi
Annotations: openshift.io/deployment-config.latest-version=1
openshift.io/deployment-config.name=glpi
openshift.io/deployment.name=glpi-1
openshift.io/generated-by=OpenShiftNewApp
openshift.io/scc=anyuid
Status: Running
IP: 10.128.0.136
.....
y luego, para ver que todo anduvo joya,
lynx 10.128.0.136.
y si aun andamos aburridos, tiramos algo de magia con
[root@qqmelo1c ~]# oc get pods glpi-1-kcbkm -o yaml > glpi.yml
[root@qqmelo1c ~]# cat glpi.yml
apiVersion: v1
kind: Pod
metadata:
annotations:
openshift.io/deployment-config.latest-version: "1"
openshift.io/deployment-config.name: glpi
openshift.io/deployment.name: glpi-1
openshift.io/generated-by: OpenShiftNewApp
openshift.io/scc: anyuid
creationTimestamp: 2019-04-04T02:47:47Z
generateName: glpi-1-
labels:
app: glpi
deployment: glpi-1
deploymentconfig: glpi
......
No comments:
Post a Comment