Skip to content

Instantly share code, notes, and snippets.

@jcantrill
Created July 29, 2015 15:36
Show Gist options
  • Save jcantrill/3f778e7d7e722d799a85 to your computer and use it in GitHub Desktop.
Save jcantrill/3f778e7d7e722d799a85 to your computer and use it in GitHub Desktop.
Hello World OpenShift Resources
{
"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"
}
}
}
]
}
@adietish
Copy link

nice! works for me getting openshift running locally.
Had to install some missing gems and launch with "--provider=virtualbox"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment