Skip to content

Instantly share code, notes, and snippets.

@rageshkrishna
Created May 7, 2015 12:20
Show Gist options
  • Save rageshkrishna/d5611756d142b7ab577c to your computer and use it in GitHub Desktop.
Save rageshkrishna/d5611756d142b7ab577c to your computer and use it in GitHub Desktop.
imageChange experiments
{
"apiVersion": "v1beta1",
"items": [
{
"apiVersion": "v1beta3",
"kind": "Service",
"metadata": {
"name": "frontend"
},
"spec": {
"ports": [
{
"name": "web",
"port": 5432,
"protocol": "TCP",
"targetPort": 3000
}
],
"selector": {
"name": "frontend"
}
}
},
{
"apiVersion": "v1beta1",
"kind": "ImageStream",
"metadata": {
"name": "hello-express"
},
"spec": {
"dockerImageRepository": "ragesh/hello-express"
}
},
{
"apiVersion": "v1beta1",
"kind": "DeploymentConfig",
"metadata": {
"name": "frontend"
},
"template": {
"controllerTemplate": {
"podTemplate": {
"desiredState": {
"manifest": {
"containers": [
{
"env": [],
"image": "ragesh/hello-express",
"imagePullPolicy": "Always",
"name": "sample-hello-express",
"ports": [
{
"containerPort": 3000
}
]
}
],
"version": "v1beta1"
}
},
"labels": {
"name": "frontend"
}
},
"replicaSelector": {
"name": "frontend"
},
"replicas": 1
},
"strategy": {
"type": "Recreate"
}
},
"triggers": [
{
"imageChangeParams": {
"automatic": true,
"containerNames": [
"sample-hello-express"
],
"from": {
"name": "hello-express"
},
"tag": "latest"
},
"type": "ImageChange"
}
]
}
],
"kind": "Template",
"metadata": {
"annotations": {
"description": "Behold the awesomeness of express.js. Now v4!"
},
"name": "ragesh-helloworld-express"
},
"parameters": [],
"labels": {
"template": "application-template-dockerbuild"
}
}
{
"kind": "ImageStreamList",
"apiVersion": "v1beta1",
"metadata": {
"selfLink": "/osapi/v1beta1/imageStreams?namespace=test",
"resourceVersion": "191"
},
"items": [
{
"metadata": {
"name": "hello-express",
"namespace": "test",
"selfLink": "/osapi/v1beta1/imageStreams/hello-express?namespace=test",
"uid": "fe2cfd21-f4af-11e4-aff6-0401153e6701",
"resourceVersion": "187",
"creationTimestamp": "2015-05-07T11:55:44Z",
"labels": {
"template": "application-template-dockerbuild"
},
"annotations": {
"openshift.io/image.dockerRepositoryCheck": "2015-05-07T11:55:52Z"
}
},
"spec": {
"dockerImageRepository": "ragesh/hello-express"
},
"status": {
"dockerImageRepository": "ragesh/hello-express",
"tags": [
{
"tag": "latest",
"items": [
{
"created": "2015-05-07T11:55:47Z",
"dockerImageReference": "ragesh/hello-express:latest",
"image": "57e2f567866529b1a7dd75eb1db052393e4ac5ba32ac6075182bbecaf5e2057e"
}
]
},
{
"tag": "master.1",
"items": [
{
"created": "2015-05-07T11:55:48Z",
"dockerImageReference": "ragesh/hello-express:master.1",
"image": "57e2f567866529b1a7dd75eb1db052393e4ac5ba32ac6075182bbecaf5e2057e"
}
]
}
]
}
}
]
}
{"kind": "ImageRepositoryMapping", "image": {"dockerImageReference": "ragesh/hello-express:latest", "metadata": {"name": "57e2f567866529b1a7dd75eb1db052393e4ac5ba32ac6075182bbecaf5e2057e"}}, "apiVersion": "v1beta1", "tag": "latest", "dockerImageRepository": "ragesh/hello-express", "metadata": {"namespace": "test", "name": "hello-express"}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment