Skip to content

Instantly share code, notes, and snippets.

@lance
Created December 7, 2017 22:16
Show Gist options
  • Save lance/cb7a0ca991712723d3d18c1484fb3fae to your computer and use it in GitHub Desktop.
Save lance/cb7a0ca991712723d3d18c1484fb3fae to your computer and use it in GitHub Desktop.
Results of running nodeshift on nodejs-rest-http and it's object of stuff that is returned. Filename denotes nodeshift command.
{
"resources": [
{
"apiVersion": "v1",
"kind": "DeploymentConfig",
"metadata": {
"name": "nodejs-rest-http",
"namespace": "myproject",
"labels": {
"project": "nodejs-rest-http",
"version": "1.0.3",
"provider": "nodeshift",
"app": "nodejs-rest-http"
},
"annotations": {
"nodeshift/git-branch": "master",
"nodeshift/git-commit": "29bfd8e5acd4c4146e30fffd6d177e0c1d77b772"
}
},
"spec": {
"replicas": 1,
"revisionHistoryLimit": 2,
"selector": {
"app": "nodejs-rest-http",
"project": "nodejs-rest-http",
"provider": "nodeshift"
},
"triggers": [
{
"type": "ConfigChange"
},
{
"type": "ImageChange",
"imageChangeParams": {
"automatic": true,
"containerNames": [
"nodejs-rest-http"
],
"from": {
"kind": "ImageStreamTag",
"name": "nodejs-rest-http:latest"
}
}
}
],
"template": {
"metadata": {
"labels": {
"project": "nodejs-rest-http",
"version": "1.0.3",
"provider": "nodeshift",
"app": "nodejs-rest-http"
},
"annotations": {
"nodeshift/git-branch": "master",
"nodeshift/git-commit": "29bfd8e5acd4c4146e30fffd6d177e0c1d77b772"
}
},
"spec": {
"containers": [
{
"image": "nodejs-rest-http",
"name": "nodejs-rest-http",
"securityContext": {
"privileged": false
},
"ports": [
{
"containerPort": 8080,
"name": "http",
"protocol": "TCP"
}
],
"readinessProbe": {
"httpGet": {
"path": "/api/greeting",
"port": 8080,
"scheme": "HTTP"
}
},
"livenessProbe": {
"httpGet": {
"path": "/api/greeting",
"port": 8080,
"scheme": "HTTP"
},
"initialDelaySeconds": 60,
"periodSeconds": 30
}
}
]
}
}
}
},
{
"spec": {
"to": {
"kind": "Service",
"name": "nodejs-rest-http"
},
"port": {
"targetPort": 8080
}
},
"apiVersion": "v1",
"kind": "Route",
"metadata": {
"name": "nodejs-rest-http",
"namespace": "myproject",
"labels": {
"project": "nodejs-rest-http",
"version": "1.0.3",
"provider": "nodeshift"
}
}
},
{
"apiVersion": "v1",
"kind": "Service",
"spec": {
"selector": {
"project": "nodejs-rest-http",
"provider": "nodeshift"
},
"ports": [
{
"protocol": "TCP",
"port": 8080,
"targetPort": 8080
}
],
"type": "ClusterIP"
},
"metadata": {
"name": "nodejs-rest-http",
"namespace": "myproject",
"labels": {
"project": "nodejs-rest-http",
"version": "1.0.3",
"provider": "nodeshift"
},
"annotations": {
"nodeshift/git-branch": "master",
"nodeshift/git-commit": "29bfd8e5acd4c4146e30fffd6d177e0c1d77b772"
}
}
}
],
"appliedResources": [
{
"kind": "DeploymentConfig",
"apiVersion": "v1",
"metadata": {
"name": "nodejs-rest-http",
"namespace": "myproject",
"selfLink": "/oapi/v1/namespaces/myproject/deploymentconfigs/nodejs-rest-http",
"uid": "ddd61d43-db9a-11e7-9389-7ecfc6b0cefc",
"resourceVersion": "6106",
"generation": 4,
"creationTimestamp": "2017-12-07T22:06:25Z",
"labels": {
"app": "nodejs-rest-http",
"project": "nodejs-rest-http",
"provider": "nodeshift",
"version": "1.0.3"
},
"annotations": {
"nodeshift/git-branch": "master",
"nodeshift/git-commit": "29bfd8e5acd4c4146e30fffd6d177e0c1d77b772"
}
},
"spec": {
"strategy": {
"type": "Rolling",
"rollingParams": {
"updatePeriodSeconds": 1,
"intervalSeconds": 1,
"timeoutSeconds": 600,
"maxUnavailable": "25%",
"maxSurge": "25%"
},
"resources": {},
"activeDeadlineSeconds": 21600
},
"triggers": [
{
"type": "ConfigChange"
},
{
"type": "ImageChange",
"imageChangeParams": {
"automatic": true,
"containerNames": [
"nodejs-rest-http"
],
"from": {
"kind": "ImageStreamTag",
"namespace": "myproject",
"name": "nodejs-rest-http:latest"
},
"lastTriggeredImage": "172.30.1.1:5000/myproject/nodejs-rest-http@sha256:4eb6c1e26d48ab67e1312d156e7bf80ea9978ce3909ad424f9133a02e0950292"
}
}
],
"replicas": 1,
"revisionHistoryLimit": 2,
"test": false,
"selector": {
"app": "nodejs-rest-http",
"project": "nodejs-rest-http",
"provider": "nodeshift"
},
"template": {
"metadata": {
"creationTimestamp": null,
"labels": {
"app": "nodejs-rest-http",
"project": "nodejs-rest-http",
"provider": "nodeshift",
"version": "1.0.3"
},
"annotations": {
"nodeshift/git-branch": "master",
"nodeshift/git-commit": "29bfd8e5acd4c4146e30fffd6d177e0c1d77b772"
}
},
"spec": {
"containers": [
{
"name": "nodejs-rest-http",
"image": "172.30.1.1:5000/myproject/nodejs-rest-http@sha256:4eb6c1e26d48ab67e1312d156e7bf80ea9978ce3909ad424f9133a02e0950292",
"ports": [
{
"name": "http",
"containerPort": 8080,
"protocol": "TCP"
}
],
"resources": {},
"livenessProbe": {
"httpGet": {
"path": "/api/greeting",
"port": 8080,
"scheme": "HTTP"
},
"initialDelaySeconds": 60,
"timeoutSeconds": 1,
"periodSeconds": 30,
"successThreshold": 1,
"failureThreshold": 3
},
"readinessProbe": {
"httpGet": {
"path": "/api/greeting",
"port": 8080,
"scheme": "HTTP"
},
"timeoutSeconds": 1,
"periodSeconds": 10,
"successThreshold": 1,
"failureThreshold": 3
},
"terminationMessagePath": "/dev/termination-log",
"terminationMessagePolicy": "File",
"imagePullPolicy": "Always",
"securityContext": {
"privileged": false
}
}
],
"restartPolicy": "Always",
"terminationGracePeriodSeconds": 30,
"dnsPolicy": "ClusterFirst",
"securityContext": {},
"schedulerName": "default-scheduler"
}
}
},
"status": {
"latestVersion": 2,
"observedGeneration": 4,
"replicas": 1,
"updatedReplicas": 1,
"availableReplicas": 1,
"unavailableReplicas": 0,
"details": {
"message": "image change",
"causes": [
{
"type": "ImageChange",
"imageTrigger": {
"from": {
"kind": "ImageStreamTag",
"namespace": "myproject",
"name": "nodejs-rest-http:latest"
}
}
}
]
},
"conditions": [
{
"type": "Available",
"status": "True",
"lastUpdateTime": "2017-12-07T22:06:36Z",
"lastTransitionTime": "2017-12-07T22:06:36Z",
"message": "Deployment config has minimum availability."
},
{
"type": "Progressing",
"status": "True",
"lastUpdateTime": "2017-12-07T22:09:05Z",
"lastTransitionTime": "2017-12-07T22:09:03Z",
"reason": "NewReplicationControllerAvailable",
"message": "replication controller \"nodejs-rest-http-2\" successfully rolled out"
}
],
"readyReplicas": 1
}
},
{
"kind": "Route",
"apiVersion": "v1",
"metadata": {
"name": "nodejs-rest-http",
"namespace": "myproject",
"selfLink": "/oapi/v1/namespaces/myproject/routes/nodejs-rest-http",
"uid": "ddd6706a-db9a-11e7-9389-7ecfc6b0cefc",
"resourceVersion": "5953",
"creationTimestamp": "2017-12-07T22:06:25Z",
"labels": {
"project": "nodejs-rest-http",
"provider": "nodeshift",
"version": "1.0.3"
},
"annotations": {
"openshift.io/host.generated": "true"
}
},
"spec": {
"host": "nodejs-rest-http-myproject.192.168.99.101.nip.io",
"to": {
"kind": "Service",
"name": "nodejs-rest-http",
"weight": 100
},
"port": {
"targetPort": 8080
},
"wildcardPolicy": "None"
},
"status": {
"ingress": [
{
"host": "nodejs-rest-http-myproject.192.168.99.101.nip.io",
"routerName": "router",
"conditions": [
{
"type": "Admitted",
"status": "True",
"lastTransitionTime": "2017-12-07T22:06:25Z"
}
],
"wildcardPolicy": "None"
}
]
}
},
{
"kind": "Service",
"apiVersion": "v1",
"metadata": {
"name": "nodejs-rest-http",
"namespace": "myproject",
"selfLink": "/api/v1/namespaces/myproject/services/nodejs-rest-http",
"uid": "ddd7c944-db9a-11e7-9389-7ecfc6b0cefc",
"resourceVersion": "5951",
"creationTimestamp": "2017-12-07T22:06:25Z",
"labels": {
"project": "nodejs-rest-http",
"provider": "nodeshift",
"version": "1.0.3"
},
"annotations": {
"nodeshift/git-branch": "master",
"nodeshift/git-commit": "29bfd8e5acd4c4146e30fffd6d177e0c1d77b772"
}
},
"spec": {
"ports": [
{
"protocol": "TCP",
"port": 8080,
"targetPort": 8080
}
],
"selector": {
"project": "nodejs-rest-http",
"provider": "nodeshift"
},
"clusterIP": "172.30.89.227",
"type": "ClusterIP",
"sessionAffinity": "None"
},
"status": {
"loadBalancer": {}
}
}
]
}
{
"build": {
"kind": "Build",
"apiVersion": "v1",
"metadata": {
"name": "nodejs-rest-http-s2i-14",
"namespace": "myproject",
"selfLink": "/oapi/v1/namespaces/myproject/builds/nodejs-rest-http-s2i-14",
"uid": "22b20c85-db9b-11e7-9389-7ecfc6b0cefc",
"resourceVersion": "6061",
"creationTimestamp": "2017-12-07T22:08:20Z",
"labels": {
"buildconfig": "nodejs-rest-http-s2i",
"openshift.io/build-config.name": "nodejs-rest-http-s2i",
"openshift.io/build.start-policy": "Serial",
"project": "nodejs-rest-http",
"provider": "nodeshift",
"version": "1.0.3"
},
"annotations": {
"openshift.io/build-config.name": "nodejs-rest-http-s2i",
"openshift.io/build.number": "14",
"openshift.io/build.pod-name": "nodejs-rest-http-s2i-14-build"
},
"ownerReferences": [
{
"apiVersion": "build.openshift.io/v1",
"kind": "BuildConfig",
"name": "nodejs-rest-http-s2i",
"uid": "73a100dc-db7e-11e7-9389-7ecfc6b0cefc",
"controller": true
}
]
},
"spec": {
"serviceAccount": "builder",
"source": {
"type": "Binary",
"binary": {}
},
"strategy": {
"type": "Source",
"sourceStrategy": {
"from": {
"kind": "DockerImage",
"name": "bucharestgold/centos7-s2i-nodejs:latest"
}
}
},
"output": {
"to": {
"kind": "ImageStreamTag",
"name": "nodejs-rest-http:latest"
},
"pushSecret": {
"name": "builder-dockercfg-zxmbg"
}
},
"resources": {},
"postCommit": {},
"nodeSelector": null,
"triggeredBy": []
},
"status": {
"phase": "Complete",
"startTimestamp": "2017-12-07T22:08:20Z",
"completionTimestamp": "2017-12-07T22:08:54Z",
"duration": 34000000000,
"outputDockerImageReference": "172.30.1.1:5000/myproject/nodejs-rest-http:latest",
"config": {
"kind": "BuildConfig",
"namespace": "myproject",
"name": "nodejs-rest-http-s2i"
},
"output": {
"to": {
"imageDigest": "sha256:4eb6c1e26d48ab67e1312d156e7bf80ea9978ce3909ad424f9133a02e0950292"
}
},
"stages": [
{
"name": "CommitContainer",
"startTime": "2017-12-07T22:08:41Z",
"durationMilliseconds": 5396,
"steps": [
{
"name": "CommitContainer",
"startTime": "2017-12-07T22:08:41Z",
"durationMilliseconds": 5396
}
]
},
{
"name": "Assemble",
"startTime": "2017-12-07T22:08:21Z",
"durationMilliseconds": 25902,
"steps": [
{
"name": "AssembleBuildScripts",
"startTime": "2017-12-07T22:08:21Z",
"durationMilliseconds": 25902
}
]
},
{
"name": "PostCommit",
"startTime": "2017-12-07T22:08:47Z",
"steps": [
{
"name": "RunPostCommitHook",
"startTime": "2017-12-07T22:08:47Z"
}
]
},
{
"name": "PushImage",
"startTime": "2017-12-07T22:08:47Z",
"durationMilliseconds": 5728,
"steps": [
{
"name": "PushImage",
"startTime": "2017-12-07T22:08:47Z",
"durationMilliseconds": 5728
}
]
}
]
}
}
}
{
"build": {
"kind": "Build",
"apiVersion": "v1",
"metadata": {
"name": "nodejs-rest-http-s2i-13",
"namespace": "myproject",
"selfLink": "/oapi/v1/namespaces/myproject/builds/nodejs-rest-http-s2i-13",
"uid": "c70812b2-db9a-11e7-9389-7ecfc6b0cefc",
"resourceVersion": "5944",
"creationTimestamp": "2017-12-07T22:05:46Z",
"labels": {
"buildconfig": "nodejs-rest-http-s2i",
"openshift.io/build-config.name": "nodejs-rest-http-s2i",
"openshift.io/build.start-policy": "Serial",
"project": "nodejs-rest-http",
"provider": "nodeshift",
"version": "1.0.3"
},
"annotations": {
"openshift.io/build-config.name": "nodejs-rest-http-s2i",
"openshift.io/build.number": "13",
"openshift.io/build.pod-name": "nodejs-rest-http-s2i-13-build"
},
"ownerReferences": [
{
"apiVersion": "build.openshift.io/v1",
"kind": "BuildConfig",
"name": "nodejs-rest-http-s2i",
"uid": "73a100dc-db7e-11e7-9389-7ecfc6b0cefc",
"controller": true
}
]
},
"spec": {
"serviceAccount": "builder",
"source": {
"type": "Binary",
"binary": {}
},
"strategy": {
"type": "Source",
"sourceStrategy": {
"from": {
"kind": "DockerImage",
"name": "bucharestgold/centos7-s2i-nodejs:latest"
}
}
},
"output": {
"to": {
"kind": "ImageStreamTag",
"name": "nodejs-rest-http:latest"
},
"pushSecret": {
"name": "builder-dockercfg-zxmbg"
}
},
"resources": {},
"postCommit": {},
"nodeSelector": null,
"triggeredBy": []
},
"status": {
"phase": "Complete",
"startTimestamp": "2017-12-07T22:05:46Z",
"completionTimestamp": "2017-12-07T22:06:20Z",
"duration": 34000000000,
"outputDockerImageReference": "172.30.1.1:5000/myproject/nodejs-rest-http:latest",
"config": {
"kind": "BuildConfig",
"namespace": "myproject",
"name": "nodejs-rest-http-s2i"
},
"output": {
"to": {
"imageDigest": "sha256:fab1fe2198197006b09538a731cb9ee9f9c96f71ec1ac63945067f6a490c577c"
}
},
"stages": [
{
"name": "CommitContainer",
"startTime": "2017-12-07T22:06:08Z",
"durationMilliseconds": 4925,
"steps": [
{
"name": "CommitContainer",
"startTime": "2017-12-07T22:06:08Z",
"durationMilliseconds": 4925
}
]
},
{
"name": "Assemble",
"startTime": "2017-12-07T22:05:48Z",
"durationMilliseconds": 25509,
"steps": [
{
"name": "AssembleBuildScripts",
"startTime": "2017-12-07T22:05:48Z",
"durationMilliseconds": 25509
}
]
},
{
"name": "PostCommit",
"startTime": "2017-12-07T22:06:14Z",
"steps": [
{
"name": "RunPostCommitHook",
"startTime": "2017-12-07T22:06:14Z"
}
]
},
{
"name": "PushImage",
"startTime": "2017-12-07T22:06:14Z",
"durationMilliseconds": 5769,
"steps": [
{
"name": "PushImage",
"startTime": "2017-12-07T22:06:14Z",
"durationMilliseconds": 5769
}
]
}
]
}
},
"resources": [
{
"apiVersion": "v1",
"kind": "DeploymentConfig",
"metadata": {
"name": "nodejs-rest-http",
"namespace": "myproject",
"labels": {
"project": "nodejs-rest-http",
"version": "1.0.3",
"provider": "nodeshift",
"app": "nodejs-rest-http"
},
"annotations": {
"nodeshift/git-branch": "master",
"nodeshift/git-commit": "29bfd8e5acd4c4146e30fffd6d177e0c1d77b772"
}
},
"spec": {
"replicas": 1,
"revisionHistoryLimit": 2,
"selector": {
"app": "nodejs-rest-http",
"project": "nodejs-rest-http",
"provider": "nodeshift"
},
"triggers": [
{
"type": "ConfigChange"
},
{
"type": "ImageChange",
"imageChangeParams": {
"automatic": true,
"containerNames": [
"nodejs-rest-http"
],
"from": {
"kind": "ImageStreamTag",
"name": "nodejs-rest-http:latest"
}
}
}
],
"template": {
"metadata": {
"labels": {
"project": "nodejs-rest-http",
"version": "1.0.3",
"provider": "nodeshift",
"app": "nodejs-rest-http"
},
"annotations": {
"nodeshift/git-branch": "master",
"nodeshift/git-commit": "29bfd8e5acd4c4146e30fffd6d177e0c1d77b772"
}
},
"spec": {
"containers": [
{
"image": "nodejs-rest-http",
"name": "nodejs-rest-http",
"securityContext": {
"privileged": false
},
"ports": [
{
"containerPort": 8080,
"name": "http",
"protocol": "TCP"
}
],
"readinessProbe": {
"httpGet": {
"path": "/api/greeting",
"port": 8080,
"scheme": "HTTP"
}
},
"livenessProbe": {
"httpGet": {
"path": "/api/greeting",
"port": 8080,
"scheme": "HTTP"
},
"initialDelaySeconds": 60,
"periodSeconds": 30
}
}
]
}
}
}
},
{
"spec": {
"to": {
"kind": "Service",
"name": "nodejs-rest-http"
},
"port": {
"targetPort": 8080
}
},
"apiVersion": "v1",
"kind": "Route",
"metadata": {
"name": "nodejs-rest-http",
"namespace": "myproject",
"labels": {
"project": "nodejs-rest-http",
"version": "1.0.3",
"provider": "nodeshift"
}
}
},
{
"apiVersion": "v1",
"kind": "Service",
"spec": {
"selector": {
"project": "nodejs-rest-http",
"provider": "nodeshift"
},
"ports": [
{
"protocol": "TCP",
"port": 8080,
"targetPort": 8080
}
],
"type": "ClusterIP"
},
"metadata": {
"name": "nodejs-rest-http",
"namespace": "myproject",
"labels": {
"project": "nodejs-rest-http",
"version": "1.0.3",
"provider": "nodeshift"
},
"annotations": {
"nodeshift/git-branch": "master",
"nodeshift/git-commit": "29bfd8e5acd4c4146e30fffd6d177e0c1d77b772"
}
}
}
],
"appliedResources": [
{
"kind": "DeploymentConfig",
"apiVersion": "v1",
"metadata": {
"name": "nodejs-rest-http",
"namespace": "myproject",
"selfLink": "/oapi/v1/namespaces/myproject/deploymentconfigs/nodejs-rest-http",
"uid": "ddd61d43-db9a-11e7-9389-7ecfc6b0cefc",
"resourceVersion": "5948",
"generation": 1,
"creationTimestamp": "2017-12-07T22:06:25Z",
"labels": {
"app": "nodejs-rest-http",
"project": "nodejs-rest-http",
"provider": "nodeshift",
"version": "1.0.3"
},
"annotations": {
"nodeshift/git-branch": "master",
"nodeshift/git-commit": "29bfd8e5acd4c4146e30fffd6d177e0c1d77b772"
}
},
"spec": {
"strategy": {
"type": "Rolling",
"rollingParams": {
"updatePeriodSeconds": 1,
"intervalSeconds": 1,
"timeoutSeconds": 600,
"maxUnavailable": "25%",
"maxSurge": "25%"
},
"resources": {},
"activeDeadlineSeconds": 21600
},
"triggers": [
{
"type": "ConfigChange"
},
{
"type": "ImageChange",
"imageChangeParams": {
"automatic": true,
"containerNames": [
"nodejs-rest-http"
],
"from": {
"kind": "ImageStreamTag",
"namespace": "myproject",
"name": "nodejs-rest-http:latest"
}
}
}
],
"replicas": 1,
"revisionHistoryLimit": 2,
"test": false,
"selector": {
"app": "nodejs-rest-http",
"project": "nodejs-rest-http",
"provider": "nodeshift"
},
"template": {
"metadata": {
"creationTimestamp": null,
"labels": {
"app": "nodejs-rest-http",
"project": "nodejs-rest-http",
"provider": "nodeshift",
"version": "1.0.3"
},
"annotations": {
"nodeshift/git-branch": "master",
"nodeshift/git-commit": "29bfd8e5acd4c4146e30fffd6d177e0c1d77b772"
}
},
"spec": {
"containers": [
{
"name": "nodejs-rest-http",
"image": "nodejs-rest-http",
"ports": [
{
"name": "http",
"containerPort": 8080,
"protocol": "TCP"
}
],
"resources": {},
"livenessProbe": {
"httpGet": {
"path": "/api/greeting",
"port": 8080,
"scheme": "HTTP"
},
"initialDelaySeconds": 60,
"timeoutSeconds": 1,
"periodSeconds": 30,
"successThreshold": 1,
"failureThreshold": 3
},
"readinessProbe": {
"httpGet": {
"path": "/api/greeting",
"port": 8080,
"scheme": "HTTP"
},
"timeoutSeconds": 1,
"periodSeconds": 10,
"successThreshold": 1,
"failureThreshold": 3
},
"terminationMessagePath": "/dev/termination-log",
"terminationMessagePolicy": "File",
"imagePullPolicy": "Always",
"securityContext": {
"privileged": false
}
}
],
"restartPolicy": "Always",
"terminationGracePeriodSeconds": 30,
"dnsPolicy": "ClusterFirst",
"securityContext": {},
"schedulerName": "default-scheduler"
}
}
},
"status": {
"latestVersion": 0,
"observedGeneration": 0,
"replicas": 0,
"updatedReplicas": 0,
"availableReplicas": 0,
"unavailableReplicas": 0
}
},
{
"kind": "Route",
"apiVersion": "v1",
"metadata": {
"name": "nodejs-rest-http",
"namespace": "myproject",
"selfLink": "/oapi/v1/namespaces/myproject/routes/nodejs-rest-http",
"uid": "ddd6706a-db9a-11e7-9389-7ecfc6b0cefc",
"resourceVersion": "5949",
"creationTimestamp": "2017-12-07T22:06:25Z",
"labels": {
"project": "nodejs-rest-http",
"provider": "nodeshift",
"version": "1.0.3"
},
"annotations": {
"openshift.io/host.generated": "true"
}
},
"spec": {
"host": "nodejs-rest-http-myproject.192.168.99.101.nip.io",
"to": {
"kind": "Service",
"name": "nodejs-rest-http",
"weight": 100
},
"port": {
"targetPort": 8080
},
"wildcardPolicy": "None"
},
"status": {
"ingress": []
}
},
{
"kind": "Service",
"apiVersion": "v1",
"metadata": {
"name": "nodejs-rest-http",
"namespace": "myproject",
"selfLink": "/api/v1/namespaces/myproject/services/nodejs-rest-http",
"uid": "ddd7c944-db9a-11e7-9389-7ecfc6b0cefc",
"resourceVersion": "5951",
"creationTimestamp": "2017-12-07T22:06:25Z",
"labels": {
"project": "nodejs-rest-http",
"provider": "nodeshift",
"version": "1.0.3"
},
"annotations": {
"nodeshift/git-branch": "master",
"nodeshift/git-commit": "29bfd8e5acd4c4146e30fffd6d177e0c1d77b772"
}
},
"spec": {
"ports": [
{
"protocol": "TCP",
"port": 8080,
"targetPort": 8080
}
],
"selector": {
"project": "nodejs-rest-http",
"provider": "nodeshift"
},
"clusterIP": "172.30.89.227",
"type": "ClusterIP",
"sessionAffinity": "None"
},
"status": {
"loadBalancer": {}
}
}
]
}
{
"resources": [
{
"apiVersion": "v1",
"kind": "DeploymentConfig",
"metadata": {
"name": "nodejs-rest-http",
"namespace": "myproject",
"labels": {
"project": "nodejs-rest-http",
"version": "1.0.3",
"provider": "nodeshift",
"app": "nodejs-rest-http"
},
"annotations": {
"nodeshift/git-branch": "master",
"nodeshift/git-commit": "29bfd8e5acd4c4146e30fffd6d177e0c1d77b772"
}
},
"spec": {
"replicas": 1,
"revisionHistoryLimit": 2,
"selector": {
"app": "nodejs-rest-http",
"project": "nodejs-rest-http",
"provider": "nodeshift"
},
"triggers": [
{
"type": "ConfigChange"
},
{
"type": "ImageChange",
"imageChangeParams": {
"automatic": true,
"containerNames": [
"nodejs-rest-http"
],
"from": {
"kind": "ImageStreamTag",
"name": "nodejs-rest-http:latest"
}
}
}
],
"template": {
"metadata": {
"labels": {
"project": "nodejs-rest-http",
"version": "1.0.3",
"provider": "nodeshift",
"app": "nodejs-rest-http"
},
"annotations": {
"nodeshift/git-branch": "master",
"nodeshift/git-commit": "29bfd8e5acd4c4146e30fffd6d177e0c1d77b772"
}
},
"spec": {
"containers": [
{
"image": "nodejs-rest-http",
"name": "nodejs-rest-http",
"securityContext": {
"privileged": false
},
"ports": [
{
"containerPort": 8080,
"name": "http",
"protocol": "TCP"
}
],
"readinessProbe": {
"httpGet": {
"path": "/api/greeting",
"port": 8080,
"scheme": "HTTP"
}
},
"livenessProbe": {
"httpGet": {
"path": "/api/greeting",
"port": 8080,
"scheme": "HTTP"
},
"initialDelaySeconds": 60,
"periodSeconds": 30
}
}
]
}
}
}
},
{
"spec": {
"to": {
"kind": "Service",
"name": "nodejs-rest-http"
},
"port": {
"targetPort": 8080
}
},
"apiVersion": "v1",
"kind": "Route",
"metadata": {
"name": "nodejs-rest-http",
"namespace": "myproject",
"labels": {
"project": "nodejs-rest-http",
"version": "1.0.3",
"provider": "nodeshift"
}
}
},
{
"apiVersion": "v1",
"kind": "Service",
"spec": {
"selector": {
"project": "nodejs-rest-http",
"provider": "nodeshift"
},
"ports": [
{
"protocol": "TCP",
"port": 8080,
"targetPort": 8080
}
],
"type": "ClusterIP"
},
"metadata": {
"name": "nodejs-rest-http",
"namespace": "myproject",
"labels": {
"project": "nodejs-rest-http",
"version": "1.0.3",
"provider": "nodeshift"
},
"annotations": {
"nodeshift/git-branch": "master",
"nodeshift/git-commit": "29bfd8e5acd4c4146e30fffd6d177e0c1d77b772"
}
}
}
]
}
{
"undeploy": {
"deploymentConfig": {
"replicationControllers": [
{
"kind": "Status",
"apiVersion": "v1",
"metadata": {},
"status": "Success",
"code": 200
}
],
"deploymentConfig": {
"kind": "DeploymentConfig",
"apiVersion": "v1",
"metadata": {
"name": "nodejs-rest-http",
"namespace": "myproject",
"selfLink": "/oapi/v1/namespaces/myproject/deploymentconfigs/nodejs-rest-http",
"uid": "9831a46b-db9b-11e7-9389-7ecfc6b0cefc",
"resourceVersion": "6252",
"generation": 3,
"creationTimestamp": "2017-12-07T22:11:37Z",
"deletionTimestamp": "2017-12-07T22:13:18Z",
"deletionGracePeriodSeconds": 0,
"labels": {
"app": "nodejs-rest-http",
"project": "nodejs-rest-http",
"provider": "nodeshift",
"version": "1.0.3"
},
"annotations": {
"nodeshift/git-branch": "master",
"nodeshift/git-commit": "29bfd8e5acd4c4146e30fffd6d177e0c1d77b772"
},
"finalizers": [
"orphan"
]
},
"spec": {
"strategy": {
"type": "Rolling",
"rollingParams": {
"updatePeriodSeconds": 1,
"intervalSeconds": 1,
"timeoutSeconds": 600,
"maxUnavailable": "25%",
"maxSurge": "25%"
},
"resources": {},
"activeDeadlineSeconds": 21600
},
"triggers": [
{
"type": "ConfigChange"
},
{
"type": "ImageChange",
"imageChangeParams": {
"automatic": true,
"containerNames": [
"nodejs-rest-http"
],
"from": {
"kind": "ImageStreamTag",
"namespace": "myproject",
"name": "nodejs-rest-http:latest"
},
"lastTriggeredImage": "172.30.1.1:5000/myproject/nodejs-rest-http@sha256:5d23931b32610c54efc1fc181193f4748e7a6d2b8f7584d6ce63fb5256f81701"
}
}
],
"replicas": 1,
"revisionHistoryLimit": 2,
"test": false,
"selector": {
"app": "nodejs-rest-http",
"project": "nodejs-rest-http",
"provider": "nodeshift"
},
"template": {
"metadata": {
"creationTimestamp": null,
"labels": {
"app": "nodejs-rest-http",
"project": "nodejs-rest-http",
"provider": "nodeshift",
"version": "1.0.3"
},
"annotations": {
"nodeshift/git-branch": "master",
"nodeshift/git-commit": "29bfd8e5acd4c4146e30fffd6d177e0c1d77b772"
}
},
"spec": {
"containers": [
{
"name": "nodejs-rest-http",
"image": "172.30.1.1:5000/myproject/nodejs-rest-http@sha256:5d23931b32610c54efc1fc181193f4748e7a6d2b8f7584d6ce63fb5256f81701",
"ports": [
{
"name": "http",
"containerPort": 8080,
"protocol": "TCP"
}
],
"resources": {},
"livenessProbe": {
"httpGet": {
"path": "/api/greeting",
"port": 8080,
"scheme": "HTTP"
},
"initialDelaySeconds": 60,
"timeoutSeconds": 1,
"periodSeconds": 30,
"successThreshold": 1,
"failureThreshold": 3
},
"readinessProbe": {
"httpGet": {
"path": "/api/greeting",
"port": 8080,
"scheme": "HTTP"
},
"timeoutSeconds": 1,
"periodSeconds": 10,
"successThreshold": 1,
"failureThreshold": 3
},
"terminationMessagePath": "/dev/termination-log",
"terminationMessagePolicy": "File",
"imagePullPolicy": "Always",
"securityContext": {
"privileged": false
}
}
],
"restartPolicy": "Always",
"terminationGracePeriodSeconds": 30,
"dnsPolicy": "ClusterFirst",
"securityContext": {},
"schedulerName": "default-scheduler"
}
}
},
"status": {
"latestVersion": 1,
"observedGeneration": 2,
"replicas": 1,
"updatedReplicas": 1,
"availableReplicas": 1,
"unavailableReplicas": 0,
"details": {
"message": "image change",
"causes": [
{
"type": "ImageChange",
"imageTrigger": {
"from": {
"kind": "ImageStreamTag",
"namespace": "myproject",
"name": "nodejs-rest-http:latest"
}
}
}
]
},
"conditions": [
{
"type": "Available",
"status": "True",
"lastUpdateTime": "2017-12-07T22:11:49Z",
"lastTransitionTime": "2017-12-07T22:11:49Z",
"message": "Deployment config has minimum availability."
},
{
"type": "Progressing",
"status": "True",
"lastUpdateTime": "2017-12-07T22:11:49Z",
"lastTransitionTime": "2017-12-07T22:11:49Z",
"reason": "NewReplicationControllerAvailable",
"message": "replication controller \"nodejs-rest-http-1\" successfully rolled out"
}
],
"readyReplicas": 1
}
}
},
"route": {
"kind": "Status",
"apiVersion": "v1",
"metadata": {},
"status": "Success",
"code": 200
},
"service": {
"kind": "Status",
"apiVersion": "v1",
"metadata": {},
"status": "Success",
"code": 200
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment