Skip to content

Instantly share code, notes, and snippets.

@bparees
Created September 26, 2014 18:40
Show Gist options
  • Save bparees/e68c4f2fafeab9be1194 to your computer and use it in GitHub Desktop.
Save bparees/e68c4f2fafeab9be1194 to your computer and use it in GitHub Desktop.
{
"apiVersion": "v1beta1",
"creationTimestamp": "2014-09-26T14:39:31-04:00",
"description": "This example shows how to create a simple ruby application i
n openshift origin v3",
"id": "ruby-helloworld-sample-template",
"items": [
{
"apiVersion": "v1beta1",
"containerPort": 0,
"creationTimestamp": null,
"id": "frontend",
"kind": "Service",
"port": 5432,
"protocol": "TCP",
"selector": {
"name": "frontend"
}
},
{
"apiVersion": "v1beta1",
"creationTimestamp": null,
"currentState": {
"podTemplate": {
"desiredState": {
"manifest": {
"containers": null,
"id": "",
"restartPolicy": {},
"version": "",
"volumes": null
}
}
},
"replicas": 0
},
"desiredState": {
"podTemplate": {
"desiredState": {
"manifest": {
"containers": [
{
"env": [
{
"key": "ADMIN_USERNAME",
"name": "ADMIN_USERNAME",
"value": "adminAVW"
},
{
"key": "ADMIN_PASSWORD",
"name": "ADMIN_PASSWORD",
"value": "CeSxqk8s"
},
{
"key": "DB_PASSWORD",
"name": "DB_PASSWORD",
"value": "Bpf4hKt8"
}
],
"image": "localhost:5000/openshift/origin-ruby-sample",
"name": "ruby-helloworld",
"ports": [
{
"containerPort": 8080,
"protocol": "TCP"
}
]
}
],
"id": "frontendController",
"restartPolicy": {
"always": {}
},
"version": "v1beta1",
"volumes": null
}
},
"labels": {
"name": "frontend"
}
},
"replicaSelector": {
"name": "frontend"
},
"replicas": 1
},
"id": "frontendController",
"kind": "ReplicationController",
"labels": {
"name": "frontend"
}
}
],
"kind": "Config",
"name": "ruby-hello-world-template"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment