Created
July 29, 2015 15:36
-
-
Save jcantrill/3f778e7d7e722d799a85 to your computer and use it in GitHub Desktop.
Hello World OpenShift Resources
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"kind": "List", | |
"apiVersion": "v1beta3", | |
"metadata": {}, | |
"items": [ | |
{ | |
"apiVersion": "v1", | |
"kind": "Pod", | |
"metadata": { | |
"labels": { | |
"name": "hello-openshift", | |
"template": "helloworld-example" | |
}, | |
"name": "hello-openshift" | |
}, | |
"spec": { | |
"containers": [ | |
{ | |
"capabilities": {}, | |
"image": "openshift/hello-openshift", | |
"imagePullPolicy": "IfNotPresent", | |
"name": "hello-openshift", | |
"ports": [ | |
{ | |
"containerPort": 8888, | |
"protocol": "TCP" | |
} | |
], | |
"securityContext": { | |
"capabilities": {}, | |
"privileged": false | |
}, | |
"terminationMessagePath": "/dev/termination-log" | |
} | |
], | |
"dnsPolicy": "ClusterFirst", | |
"restartPolicy": "Always", | |
"serviceAccount": "" | |
}, | |
"status": {} | |
}, | |
{ | |
"apiVersion": "v1", | |
"kind": "Service", | |
"metadata": { | |
"creationTimestamp": null, | |
"labels": { | |
"template": "helloworld-example" | |
}, | |
"name": "hello-service" | |
}, | |
"spec": { | |
"portalIP": "", | |
"ports": [ | |
{ | |
"name": "web", | |
"nodePort": 0, | |
"port": 5432, | |
"protocol": "TCP", | |
"targetPort": 8080 | |
} | |
], | |
"selector": { | |
"name": "hello-openshift" | |
}, | |
"sessionAffinity": "None", | |
"type": "ClusterIP" | |
}, | |
"status": { | |
"loadBalancer": {} | |
} | |
}, | |
{ | |
"apiVersion": "v1", | |
"kind": "Route", | |
"metadata": { | |
"annotations": {}, | |
"labels": { | |
"template": "helloworld-example" | |
}, | |
"name": "hello-route" | |
}, | |
"spec": { | |
"to": { | |
"name": "hello-service" | |
} | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
nice! works for me getting openshift running locally.
Had to install some missing gems and launch with "--provider=virtualbox"