Skip to content

Instantly share code, notes, and snippets.

@brgnepal
Created March 19, 2018 15:53
Show Gist options
  • Save brgnepal/0609946515fe2456e670c814fd028da7 to your computer and use it in GitHub Desktop.
Save brgnepal/0609946515fe2456e670c814fd028da7 to your computer and use it in GitHub Desktop.
oc get all logs
{
"apiVersion": "v1",
"items": [
{
"apiVersion": "v1",
"kind": "BuildConfig",
"metadata": {
"annotations": {
"openshift.io/generated-by": "OpenShiftNewApp"
},
"creationTimestamp": "2018-03-19T15:05:13Z",
"labels": {
"app": "nodejs-ex",
"name": "myapp"
},
"name": "nodejs-ex",
"namespace": "myproject",
"resourceVersion": "1254",
"selfLink": "/oapi/v1/namespaces/myproject/buildconfigs/nodejs-ex",
"uid": "ece7f28b-2b86-11e8-a0f3-525400689435"
},
"spec": {
"failedBuildsHistoryLimit": 5,
"nodeSelector": null,
"output": {
"to": {
"kind": "ImageStreamTag",
"name": "nodejs-ex:latest"
}
},
"postCommit": {},
"resources": {},
"runPolicy": "Serial",
"source": {
"git": {
"uri": "https://github.com/openshift/nodejs-ex"
},
"type": "Git"
},
"strategy": {
"sourceStrategy": {
"from": {
"kind": "ImageStreamTag",
"name": "nodejs:6",
"namespace": "openshift"
}
},
"type": "Source"
},
"successfulBuildsHistoryLimit": 5,
"triggers": [
{
"github": {
"secret": "1WE9f9KLBFikgypkuzji"
},
"type": "GitHub"
},
{
"generic": {
"secret": "YyWX3ctk2pXgXtqDgUky"
},
"type": "Generic"
},
{
"type": "ConfigChange"
},
{
"imageChange": {
"lastTriggeredImageID": "centos/nodejs-6-centos7@sha256:1f23d374ca052fd024c0a6df2dad234daa843b6ebce000e57d3b3a397dd11460"
},
"type": "ImageChange"
}
]
},
"status": {
"lastVersion": 1
}
},
{
"apiVersion": "v1",
"kind": "Build",
"metadata": {
"annotations": {
"openshift.io/build-config.name": "nodejs-ex",
"openshift.io/build.number": "1",
"openshift.io/build.pod-name": "nodejs-ex-1-build"
},
"creationTimestamp": "2018-03-19T15:05:14Z",
"labels": {
"app": "nodejs-ex",
"buildconfig": "nodejs-ex",
"name": "myapp",
"openshift.io/build-config.name": "nodejs-ex",
"openshift.io/build.start-policy": "Serial"
},
"name": "nodejs-ex-1",
"namespace": "myproject",
"ownerReferences": [
{
"apiVersion": "build.openshift.io/v1",
"controller": true,
"kind": "BuildConfig",
"name": "nodejs-ex",
"uid": "ece7f28b-2b86-11e8-a0f3-525400689435"
}
],
"resourceVersion": "1301",
"selfLink": "/oapi/v1/namespaces/myproject/builds/nodejs-ex-1",
"uid": "edb8337c-2b86-11e8-a0f3-525400689435"
},
"spec": {
"nodeSelector": null,
"output": {
"pushSecret": {
"name": "builder-dockercfg-7bmfs"
},
"to": {
"kind": "ImageStreamTag",
"name": "nodejs-ex:latest"
}
},
"postCommit": {},
"resources": {},
"serviceAccount": "builder",
"source": {
"git": {
"uri": "https://github.com/openshift/nodejs-ex"
},
"type": "Git"
},
"strategy": {
"sourceStrategy": {
"from": {
"kind": "DockerImage",
"name": "centos/nodejs-6-centos7@sha256:1f23d374ca052fd024c0a6df2dad234daa843b6ebce000e57d3b3a397dd11460"
}
},
"type": "Source"
},
"triggeredBy": [
{
"message": "Build configuration change"
}
]
},
"status": {
"completionTimestamp": "2018-03-19T15:05:29Z",
"config": {
"kind": "BuildConfig",
"name": "nodejs-ex",
"namespace": "myproject"
},
"duration": 11000000000,
"message": "Failed to fetch the input source.",
"output": {},
"outputDockerImageReference": "172.30.1.1:5000/myproject/nodejs-ex:latest",
"phase": "Failed",
"reason": "FetchSourceFailed",
"startTimestamp": "2018-03-19T15:05:18Z"
}
},
{
"apiVersion": "v1",
"kind": "ImageStream",
"metadata": {
"annotations": {
"openshift.io/generated-by": "OpenShiftNewApp"
},
"creationTimestamp": "2018-03-19T15:05:12Z",
"generation": 1,
"labels": {
"app": "nodejs-ex",
"name": "myapp"
},
"name": "nodejs-ex",
"namespace": "myproject",
"resourceVersion": "1245",
"selfLink": "/oapi/v1/namespaces/myproject/imagestreams/nodejs-ex",
"uid": "ec908ba9-2b86-11e8-a0f3-525400689435"
},
"spec": {
"lookupPolicy": {
"local": false
}
},
"status": {
"dockerImageRepository": "172.30.1.1:5000/myproject/nodejs-ex"
}
},
{
"apiVersion": "v1",
"kind": "DeploymentConfig",
"metadata": {
"annotations": {
"openshift.io/generated-by": "OpenShiftNewApp"
},
"creationTimestamp": "2018-03-19T15:05:13Z",
"generation": 1,
"labels": {
"app": "nodejs-ex",
"name": "myapp"
},
"name": "nodejs-ex",
"namespace": "myproject",
"resourceVersion": "1250",
"selfLink": "/oapi/v1/namespaces/myproject/deploymentconfigs/nodejs-ex",
"uid": "eceff3ea-2b86-11e8-a0f3-525400689435"
},
"spec": {
"replicas": 1,
"revisionHistoryLimit": 10,
"selector": {
"app": "nodejs-ex",
"deploymentconfig": "nodejs-ex",
"name": "myapp"
},
"strategy": {
"activeDeadlineSeconds": 21600,
"resources": {},
"rollingParams": {
"intervalSeconds": 1,
"maxSurge": "25%",
"maxUnavailable": "25%",
"timeoutSeconds": 600,
"updatePeriodSeconds": 1
},
"type": "Rolling"
},
"template": {
"metadata": {
"annotations": {
"openshift.io/generated-by": "OpenShiftNewApp"
},
"creationTimestamp": null,
"labels": {
"app": "nodejs-ex",
"deploymentconfig": "nodejs-ex",
"name": "myapp"
}
},
"spec": {
"containers": [
{
"image": "nodejs-ex:latest",
"imagePullPolicy": "Always",
"name": "nodejs-ex",
"ports": [
{
"containerPort": 8080,
"protocol": "TCP"
}
],
"resources": {},
"terminationMessagePath": "/dev/termination-log",
"terminationMessagePolicy": "File"
}
],
"dnsPolicy": "ClusterFirst",
"restartPolicy": "Always",
"schedulerName": "default-scheduler",
"securityContext": {},
"terminationGracePeriodSeconds": 30
}
},
"test": false,
"triggers": [
{
"type": "ConfigChange"
},
{
"imageChangeParams": {
"automatic": true,
"containerNames": [
"nodejs-ex"
],
"from": {
"kind": "ImageStreamTag",
"name": "nodejs-ex:latest",
"namespace": "myproject"
}
},
"type": "ImageChange"
}
]
},
"status": {
"availableReplicas": 0,
"conditions": [
{
"lastTransitionTime": "2018-03-19T15:05:13Z",
"lastUpdateTime": "2018-03-19T15:05:13Z",
"message": "Deployment config does not have minimum availability.",
"status": "False",
"type": "Available"
}
],
"latestVersion": 0,
"observedGeneration": 1,
"replicas": 0,
"unavailableReplicas": 0,
"updatedReplicas": 0
}
},
{
"apiVersion": "v1",
"kind": "Route",
"metadata": {
"annotations": {
"openshift.io/host.generated": "true"
},
"creationTimestamp": "2018-03-19T15:05:36Z",
"labels": {
"app": "nodejs-ex",
"name": "myapp"
},
"name": "nodejs-ex",
"namespace": "myproject",
"resourceVersion": "1317",
"selfLink": "/oapi/v1/namespaces/myproject/routes/nodejs-ex",
"uid": "fad669d2-2b86-11e8-a0f3-525400689435"
},
"spec": {
"host": "nodejs-ex-myproject.192.168.42.81.nip.io",
"port": {
"targetPort": "8080-tcp"
},
"to": {
"kind": "Service",
"name": "nodejs-ex",
"weight": 100
},
"wildcardPolicy": "None"
},
"status": {
"ingress": [
{
"conditions": [
{
"lastTransitionTime": "2018-03-19T15:05:37Z",
"status": "True",
"type": "Admitted"
}
],
"host": "nodejs-ex-myproject.192.168.42.81.nip.io",
"routerName": "router",
"wildcardPolicy": "None"
}
]
}
},
{
"apiVersion": "v1",
"kind": "Pod",
"metadata": {
"annotations": {
"openshift.io/build.name": "nodejs-ex-1",
"openshift.io/scc": "privileged",
"pod.alpha.kubernetes.io/init-container-statuses": "[{\"name\":\"git-clone\",\"state\":{\"terminated\":{\"exitCode\":1,\"reason\":\"Error\",\"message\":\"Cloning \\\"https://github.com/openshift/nodejs-ex\\\" ...\\nerror: fatal: unable to access 'https://github.com/openshift/nodejs-ex/': Could not resolve host: github.com; Unknown error\\n\",\"startedAt\":\"2018-03-19T15:05:26Z\",\"finishedAt\":\"2018-03-19T15:05:29Z\",\"containerID\":\"docker://9ec338ee2b6a4d8f2723f985e1ea65426cea7ca9bac5951968d153afbcf4d90f\"}},\"lastState\":{},\"ready\":false,\"restartCount\":0,\"image\":\"openshift/origin-sti-builder:v3.7.1\",\"imageID\":\"docker-pullable://openshift/origin-sti-builder@sha256:46dd04503c7f1bf2d07bd962925c437e45d3dc4964aa81647a386030df5d4cbc\",\"containerID\":\"docker://9ec338ee2b6a4d8f2723f985e1ea65426cea7ca9bac5951968d153afbcf4d90f\"},{\"name\":\"manage-dockerfile\",\"state\":{\"waiting\":{\"reason\":\"PodInitializing\"}},\"lastState\":{},\"ready\":false,\"restartCount\":0,\"image\":\"openshift/origin-sti-builder:v3.7.1\",\"imageID\":\"\"}]",
"pod.alpha.kubernetes.io/init-containers": "[{\"name\":\"git-clone\",\"image\":\"openshift/origin-sti-builder:v3.7.1\",\"command\":[\"openshift-git-clone\"],\"args\":[\"--loglevel=0\"],\"env\":[{\"name\":\"BUILD\",\"value\":\"{\\\"kind\\\":\\\"Build\\\",\\\"apiVersion\\\":\\\"v1\\\",\\\"metadata\\\":{\\\"name\\\":\\\"nodejs-ex-1\\\",\\\"namespace\\\":\\\"myproject\\\",\\\"selfLink\\\":\\\"/apis/build.openshift.io/v1/namespaces/myproject/builds/nodejs-ex-1\\\",\\\"uid\\\":\\\"edb8337c-2b86-11e8-a0f3-525400689435\\\",\\\"resourceVersion\\\":\\\"1255\\\",\\\"creationTimestamp\\\":\\\"2018-03-19T15:05:14Z\\\",\\\"labels\\\":{\\\"app\\\":\\\"nodejs-ex\\\",\\\"buildconfig\\\":\\\"nodejs-ex\\\",\\\"name\\\":\\\"myapp\\\",\\\"openshift.io/build-config.name\\\":\\\"nodejs-ex\\\",\\\"openshift.io/build.start-policy\\\":\\\"Serial\\\"},\\\"annotations\\\":{\\\"openshift.io/build-config.name\\\":\\\"nodejs-ex\\\",\\\"openshift.io/build.number\\\":\\\"1\\\"},\\\"ownerReferences\\\":[{\\\"apiVersion\\\":\\\"build.openshift.io/v1\\\",\\\"kind\\\":\\\"BuildConfig\\\",\\\"name\\\":\\\"nodejs-ex\\\",\\\"uid\\\":\\\"ece7f28b-2b86-11e8-a0f3-525400689435\\\",\\\"controller\\\":true}]},\\\"spec\\\":{\\\"serviceAccount\\\":\\\"builder\\\",\\\"source\\\":{\\\"type\\\":\\\"Git\\\",\\\"git\\\":{\\\"uri\\\":\\\"https://github.com/openshift/nodejs-ex\\\"}},\\\"strategy\\\":{\\\"type\\\":\\\"Source\\\",\\\"sourceStrategy\\\":{\\\"from\\\":{\\\"kind\\\":\\\"DockerImage\\\",\\\"name\\\":\\\"centos/nodejs-6-centos7@sha256:1f23d374ca052fd024c0a6df2dad234daa843b6ebce000e57d3b3a397dd11460\\\"}}},\\\"output\\\":{\\\"to\\\":{\\\"kind\\\":\\\"DockerImage\\\",\\\"name\\\":\\\"172.30.1.1:5000/myproject/nodejs-ex:latest\\\"},\\\"pushSecret\\\":{\\\"name\\\":\\\"builder-dockercfg-7bmfs\\\"}},\\\"resources\\\":{},\\\"postCommit\\\":{},\\\"nodeSelector\\\":null,\\\"triggeredBy\\\":[{\\\"message\\\":\\\"Build configuration change\\\"}]},\\\"status\\\":{\\\"phase\\\":\\\"New\\\",\\\"outputDockerImageReference\\\":\\\"172.30.1.1:5000/myproject/nodejs-ex:latest\\\",\\\"config\\\":{\\\"kind\\\":\\\"BuildConfig\\\",\\\"namespace\\\":\\\"myproject\\\",\\\"name\\\":\\\"nodejs-ex\\\"},\\\"output\\\":{}}}\\n\"},{\"name\":\"SOURCE_REPOSITORY\",\"value\":\"https://github.com/openshift/nodejs-ex\"},{\"name\":\"SOURCE_URI\",\"value\":\"https://github.com/openshift/nodejs-ex\"},{\"name\":\"ORIGIN_VERSION\",\"value\":\"v3.7.1+282e43f-42\"},{\"name\":\"ALLOWED_UIDS\",\"value\":\"1-\"},{\"name\":\"DROP_CAPS\",\"value\":\"KILL,MKNOD,SETGID,SETUID\"}],\"resources\":{},\"volumeMounts\":[{\"name\":\"buildworkdir\",\"mountPath\":\"/tmp/build\"},{\"name\":\"builder-token-66s7s\",\"readOnly\":true,\"mountPath\":\"/var/run/secrets/kubernetes.io/serviceaccount\"}],\"terminationMessagePath\":\"/dev/termination-log\",\"terminationMessagePolicy\":\"FallbackToLogsOnError\",\"imagePullPolicy\":\"IfNotPresent\",\"securityContext\":{\"privileged\":false}},{\"name\":\"manage-dockerfile\",\"image\":\"openshift/origin-sti-builder:v3.7.1\",\"command\":[\"openshift-manage-dockerfile\"],\"args\":[\"--loglevel=0\"],\"env\":[{\"name\":\"BUILD\",\"value\":\"{\\\"kind\\\":\\\"Build\\\",\\\"apiVersion\\\":\\\"v1\\\",\\\"metadata\\\":{\\\"name\\\":\\\"nodejs-ex-1\\\",\\\"namespace\\\":\\\"myproject\\\",\\\"selfLink\\\":\\\"/apis/build.openshift.io/v1/namespaces/myproject/builds/nodejs-ex-1\\\",\\\"uid\\\":\\\"edb8337c-2b86-11e8-a0f3-525400689435\\\",\\\"resourceVersion\\\":\\\"1255\\\",\\\"creationTimestamp\\\":\\\"2018-03-19T15:05:14Z\\\",\\\"labels\\\":{\\\"app\\\":\\\"nodejs-ex\\\",\\\"buildconfig\\\":\\\"nodejs-ex\\\",\\\"name\\\":\\\"myapp\\\",\\\"openshift.io/build-config.name\\\":\\\"nodejs-ex\\\",\\\"openshift.io/build.start-policy\\\":\\\"Serial\\\"},\\\"annotations\\\":{\\\"openshift.io/build-config.name\\\":\\\"nodejs-ex\\\",\\\"openshift.io/build.number\\\":\\\"1\\\"},\\\"ownerReferences\\\":[{\\\"apiVersion\\\":\\\"build.openshift.io/v1\\\",\\\"kind\\\":\\\"BuildConfig\\\",\\\"name\\\":\\\"nodejs-ex\\\",\\\"uid\\\":\\\"ece7f28b-2b86-11e8-a0f3-525400689435\\\",\\\"controller\\\":true}]},\\\"spec\\\":{\\\"serviceAccount\\\":\\\"builder\\\",\\\"source\\\":{\\\"type\\\":\\\"Git\\\",\\\"git\\\":{\\\"uri\\\":\\\"https://github.com/openshift/nodejs-ex\\\"}},\\\"strategy\\\":{\\\"type\\\":\\\"Source\\\",\\\"sourceStrategy\\\":{\\\"from\\\":{\\\"kind\\\":\\\"DockerImage\\\",\\\"name\\\":\\\"centos/nodejs-6-centos7@sha256:1f23d374ca052fd024c0a6df2dad234daa843b6ebce000e57d3b3a397dd11460\\\"}}},\\\"output\\\":{\\\"to\\\":{\\\"kind\\\":\\\"DockerImage\\\",\\\"name\\\":\\\"172.30.1.1:5000/myproject/nodejs-ex:latest\\\"},\\\"pushSecret\\\":{\\\"name\\\":\\\"builder-dockercfg-7bmfs\\\"}},\\\"resources\\\":{},\\\"postCommit\\\":{},\\\"nodeSelector\\\":null,\\\"triggeredBy\\\":[{\\\"message\\\":\\\"Build configuration change\\\"}]},\\\"status\\\":{\\\"phase\\\":\\\"New\\\",\\\"outputDockerImageReference\\\":\\\"172.30.1.1:5000/myproject/nodejs-ex:latest\\\",\\\"config\\\":{\\\"kind\\\":\\\"BuildConfig\\\",\\\"namespace\\\":\\\"myproject\\\",\\\"name\\\":\\\"nodejs-ex\\\"},\\\"output\\\":{}}}\\n\"},{\"name\":\"SOURCE_REPOSITORY\",\"value\":\"https://github.com/openshift/nodejs-ex\"},{\"name\":\"SOURCE_URI\",\"value\":\"https://github.com/openshift/nodejs-ex\"},{\"name\":\"ORIGIN_VERSION\",\"value\":\"v3.7.1+282e43f-42\"},{\"name\":\"ALLOWED_UIDS\",\"value\":\"1-\"},{\"name\":\"DROP_CAPS\",\"value\":\"KILL,MKNOD,SETGID,SETUID\"}],\"resources\":{},\"volumeMounts\":[{\"name\":\"buildworkdir\",\"mountPath\":\"/tmp/build\"},{\"name\":\"builder-token-66s7s\",\"readOnly\":true,\"mountPath\":\"/var/run/secrets/kubernetes.io/serviceaccount\"}],\"terminationMessagePath\":\"/dev/termination-log\",\"terminationMessagePolicy\":\"FallbackToLogsOnError\",\"imagePullPolicy\":\"IfNotPresent\",\"securityContext\":{\"privileged\":false}}]",
"pod.beta.kubernetes.io/init-container-statuses": "[{\"name\":\"git-clone\",\"state\":{\"terminated\":{\"exitCode\":1,\"reason\":\"Error\",\"message\":\"Cloning \\\"https://github.com/openshift/nodejs-ex\\\" ...\\nerror: fatal: unable to access 'https://github.com/openshift/nodejs-ex/': Could not resolve host: github.com; Unknown error\\n\",\"startedAt\":\"2018-03-19T15:05:26Z\",\"finishedAt\":\"2018-03-19T15:05:29Z\",\"containerID\":\"docker://9ec338ee2b6a4d8f2723f985e1ea65426cea7ca9bac5951968d153afbcf4d90f\"}},\"lastState\":{},\"ready\":false,\"restartCount\":0,\"image\":\"openshift/origin-sti-builder:v3.7.1\",\"imageID\":\"docker-pullable://openshift/origin-sti-builder@sha256:46dd04503c7f1bf2d07bd962925c437e45d3dc4964aa81647a386030df5d4cbc\",\"containerID\":\"docker://9ec338ee2b6a4d8f2723f985e1ea65426cea7ca9bac5951968d153afbcf4d90f\"},{\"name\":\"manage-dockerfile\",\"state\":{\"waiting\":{\"reason\":\"PodInitializing\"}},\"lastState\":{},\"ready\":false,\"restartCount\":0,\"image\":\"openshift/origin-sti-builder:v3.7.1\",\"imageID\":\"\"}]",
"pod.beta.kubernetes.io/init-containers": "[{\"name\":\"git-clone\",\"image\":\"openshift/origin-sti-builder:v3.7.1\",\"command\":[\"openshift-git-clone\"],\"args\":[\"--loglevel=0\"],\"env\":[{\"name\":\"BUILD\",\"value\":\"{\\\"kind\\\":\\\"Build\\\",\\\"apiVersion\\\":\\\"v1\\\",\\\"metadata\\\":{\\\"name\\\":\\\"nodejs-ex-1\\\",\\\"namespace\\\":\\\"myproject\\\",\\\"selfLink\\\":\\\"/apis/build.openshift.io/v1/namespaces/myproject/builds/nodejs-ex-1\\\",\\\"uid\\\":\\\"edb8337c-2b86-11e8-a0f3-525400689435\\\",\\\"resourceVersion\\\":\\\"1255\\\",\\\"creationTimestamp\\\":\\\"2018-03-19T15:05:14Z\\\",\\\"labels\\\":{\\\"app\\\":\\\"nodejs-ex\\\",\\\"buildconfig\\\":\\\"nodejs-ex\\\",\\\"name\\\":\\\"myapp\\\",\\\"openshift.io/build-config.name\\\":\\\"nodejs-ex\\\",\\\"openshift.io/build.start-policy\\\":\\\"Serial\\\"},\\\"annotations\\\":{\\\"openshift.io/build-config.name\\\":\\\"nodejs-ex\\\",\\\"openshift.io/build.number\\\":\\\"1\\\"},\\\"ownerReferences\\\":[{\\\"apiVersion\\\":\\\"build.openshift.io/v1\\\",\\\"kind\\\":\\\"BuildConfig\\\",\\\"name\\\":\\\"nodejs-ex\\\",\\\"uid\\\":\\\"ece7f28b-2b86-11e8-a0f3-525400689435\\\",\\\"controller\\\":true}]},\\\"spec\\\":{\\\"serviceAccount\\\":\\\"builder\\\",\\\"source\\\":{\\\"type\\\":\\\"Git\\\",\\\"git\\\":{\\\"uri\\\":\\\"https://github.com/openshift/nodejs-ex\\\"}},\\\"strategy\\\":{\\\"type\\\":\\\"Source\\\",\\\"sourceStrategy\\\":{\\\"from\\\":{\\\"kind\\\":\\\"DockerImage\\\",\\\"name\\\":\\\"centos/nodejs-6-centos7@sha256:1f23d374ca052fd024c0a6df2dad234daa843b6ebce000e57d3b3a397dd11460\\\"}}},\\\"output\\\":{\\\"to\\\":{\\\"kind\\\":\\\"DockerImage\\\",\\\"name\\\":\\\"172.30.1.1:5000/myproject/nodejs-ex:latest\\\"},\\\"pushSecret\\\":{\\\"name\\\":\\\"builder-dockercfg-7bmfs\\\"}},\\\"resources\\\":{},\\\"postCommit\\\":{},\\\"nodeSelector\\\":null,\\\"triggeredBy\\\":[{\\\"message\\\":\\\"Build configuration change\\\"}]},\\\"status\\\":{\\\"phase\\\":\\\"New\\\",\\\"outputDockerImageReference\\\":\\\"172.30.1.1:5000/myproject/nodejs-ex:latest\\\",\\\"config\\\":{\\\"kind\\\":\\\"BuildConfig\\\",\\\"namespace\\\":\\\"myproject\\\",\\\"name\\\":\\\"nodejs-ex\\\"},\\\"output\\\":{}}}\\n\"},{\"name\":\"SOURCE_REPOSITORY\",\"value\":\"https://github.com/openshift/nodejs-ex\"},{\"name\":\"SOURCE_URI\",\"value\":\"https://github.com/openshift/nodejs-ex\"},{\"name\":\"ORIGIN_VERSION\",\"value\":\"v3.7.1+282e43f-42\"},{\"name\":\"ALLOWED_UIDS\",\"value\":\"1-\"},{\"name\":\"DROP_CAPS\",\"value\":\"KILL,MKNOD,SETGID,SETUID\"}],\"resources\":{},\"volumeMounts\":[{\"name\":\"buildworkdir\",\"mountPath\":\"/tmp/build\"},{\"name\":\"builder-token-66s7s\",\"readOnly\":true,\"mountPath\":\"/var/run/secrets/kubernetes.io/serviceaccount\"}],\"terminationMessagePath\":\"/dev/termination-log\",\"terminationMessagePolicy\":\"FallbackToLogsOnError\",\"imagePullPolicy\":\"IfNotPresent\",\"securityContext\":{\"privileged\":false}},{\"name\":\"manage-dockerfile\",\"image\":\"openshift/origin-sti-builder:v3.7.1\",\"command\":[\"openshift-manage-dockerfile\"],\"args\":[\"--loglevel=0\"],\"env\":[{\"name\":\"BUILD\",\"value\":\"{\\\"kind\\\":\\\"Build\\\",\\\"apiVersion\\\":\\\"v1\\\",\\\"metadata\\\":{\\\"name\\\":\\\"nodejs-ex-1\\\",\\\"namespace\\\":\\\"myproject\\\",\\\"selfLink\\\":\\\"/apis/build.openshift.io/v1/namespaces/myproject/builds/nodejs-ex-1\\\",\\\"uid\\\":\\\"edb8337c-2b86-11e8-a0f3-525400689435\\\",\\\"resourceVersion\\\":\\\"1255\\\",\\\"creationTimestamp\\\":\\\"2018-03-19T15:05:14Z\\\",\\\"labels\\\":{\\\"app\\\":\\\"nodejs-ex\\\",\\\"buildconfig\\\":\\\"nodejs-ex\\\",\\\"name\\\":\\\"myapp\\\",\\\"openshift.io/build-config.name\\\":\\\"nodejs-ex\\\",\\\"openshift.io/build.start-policy\\\":\\\"Serial\\\"},\\\"annotations\\\":{\\\"openshift.io/build-config.name\\\":\\\"nodejs-ex\\\",\\\"openshift.io/build.number\\\":\\\"1\\\"},\\\"ownerReferences\\\":[{\\\"apiVersion\\\":\\\"build.openshift.io/v1\\\",\\\"kind\\\":\\\"BuildConfig\\\",\\\"name\\\":\\\"nodejs-ex\\\",\\\"uid\\\":\\\"ece7f28b-2b86-11e8-a0f3-525400689435\\\",\\\"controller\\\":true}]},\\\"spec\\\":{\\\"serviceAccount\\\":\\\"builder\\\",\\\"source\\\":{\\\"type\\\":\\\"Git\\\",\\\"git\\\":{\\\"uri\\\":\\\"https://github.com/openshift/nodejs-ex\\\"}},\\\"strategy\\\":{\\\"type\\\":\\\"Source\\\",\\\"sourceStrategy\\\":{\\\"from\\\":{\\\"kind\\\":\\\"DockerImage\\\",\\\"name\\\":\\\"centos/nodejs-6-centos7@sha256:1f23d374ca052fd024c0a6df2dad234daa843b6ebce000e57d3b3a397dd11460\\\"}}},\\\"output\\\":{\\\"to\\\":{\\\"kind\\\":\\\"DockerImage\\\",\\\"name\\\":\\\"172.30.1.1:5000/myproject/nodejs-ex:latest\\\"},\\\"pushSecret\\\":{\\\"name\\\":\\\"builder-dockercfg-7bmfs\\\"}},\\\"resources\\\":{},\\\"postCommit\\\":{},\\\"nodeSelector\\\":null,\\\"triggeredBy\\\":[{\\\"message\\\":\\\"Build configuration change\\\"}]},\\\"status\\\":{\\\"phase\\\":\\\"New\\\",\\\"outputDockerImageReference\\\":\\\"172.30.1.1:5000/myproject/nodejs-ex:latest\\\",\\\"config\\\":{\\\"kind\\\":\\\"BuildConfig\\\",\\\"namespace\\\":\\\"myproject\\\",\\\"name\\\":\\\"nodejs-ex\\\"},\\\"output\\\":{}}}\\n\"},{\"name\":\"SOURCE_REPOSITORY\",\"value\":\"https://github.com/openshift/nodejs-ex\"},{\"name\":\"SOURCE_URI\",\"value\":\"https://github.com/openshift/nodejs-ex\"},{\"name\":\"ORIGIN_VERSION\",\"value\":\"v3.7.1+282e43f-42\"},{\"name\":\"ALLOWED_UIDS\",\"value\":\"1-\"},{\"name\":\"DROP_CAPS\",\"value\":\"KILL,MKNOD,SETGID,SETUID\"}],\"resources\":{},\"volumeMounts\":[{\"name\":\"buildworkdir\",\"mountPath\":\"/tmp/build\"},{\"name\":\"builder-token-66s7s\",\"readOnly\":true,\"mountPath\":\"/var/run/secrets/kubernetes.io/serviceaccount\"}],\"terminationMessagePath\":\"/dev/termination-log\",\"terminationMessagePolicy\":\"FallbackToLogsOnError\",\"imagePullPolicy\":\"IfNotPresent\",\"securityContext\":{\"privileged\":false}}]"
},
"creationTimestamp": "2018-03-19T15:05:18Z",
"labels": {
"openshift.io/build.name": "nodejs-ex-1"
},
"name": "nodejs-ex-1-build",
"namespace": "myproject",
"ownerReferences": [
{
"apiVersion": "build.openshift.io/v1",
"controller": true,
"kind": "Build",
"name": "nodejs-ex-1",
"uid": "edb8337c-2b86-11e8-a0f3-525400689435"
}
],
"resourceVersion": "1303",
"selfLink": "/api/v1/namespaces/myproject/pods/nodejs-ex-1-build",
"uid": "efd82226-2b86-11e8-a0f3-525400689435"
},
"spec": {
"containers": [
{
"args": [
"--loglevel=0"
],
"command": [
"openshift-sti-build"
],
"env": [
{
"name": "BUILD",
"value": "{\"kind\":\"Build\",\"apiVersion\":\"v1\",\"metadata\":{\"name\":\"nodejs-ex-1\",\"namespace\":\"myproject\",\"selfLink\":\"/apis/build.openshift.io/v1/namespaces/myproject/builds/nodejs-ex-1\",\"uid\":\"edb8337c-2b86-11e8-a0f3-525400689435\",\"resourceVersion\":\"1255\",\"creationTimestamp\":\"2018-03-19T15:05:14Z\",\"labels\":{\"app\":\"nodejs-ex\",\"buildconfig\":\"nodejs-ex\",\"name\":\"myapp\",\"openshift.io/build-config.name\":\"nodejs-ex\",\"openshift.io/build.start-policy\":\"Serial\"},\"annotations\":{\"openshift.io/build-config.name\":\"nodejs-ex\",\"openshift.io/build.number\":\"1\"},\"ownerReferences\":[{\"apiVersion\":\"build.openshift.io/v1\",\"kind\":\"BuildConfig\",\"name\":\"nodejs-ex\",\"uid\":\"ece7f28b-2b86-11e8-a0f3-525400689435\",\"controller\":true}]},\"spec\":{\"serviceAccount\":\"builder\",\"source\":{\"type\":\"Git\",\"git\":{\"uri\":\"https://github.com/openshift/nodejs-ex\"}},\"strategy\":{\"type\":\"Source\",\"sourceStrategy\":{\"from\":{\"kind\":\"DockerImage\",\"name\":\"centos/nodejs-6-centos7@sha256:1f23d374ca052fd024c0a6df2dad234daa843b6ebce000e57d3b3a397dd11460\"}}},\"output\":{\"to\":{\"kind\":\"DockerImage\",\"name\":\"172.30.1.1:5000/myproject/nodejs-ex:latest\"},\"pushSecret\":{\"name\":\"builder-dockercfg-7bmfs\"}},\"resources\":{},\"postCommit\":{},\"nodeSelector\":null,\"triggeredBy\":[{\"message\":\"Build configuration change\"}]},\"status\":{\"phase\":\"New\",\"outputDockerImageReference\":\"172.30.1.1:5000/myproject/nodejs-ex:latest\",\"config\":{\"kind\":\"BuildConfig\",\"namespace\":\"myproject\",\"name\":\"nodejs-ex\"},\"output\":{}}}\n"
},
{
"name": "SOURCE_REPOSITORY",
"value": "https://github.com/openshift/nodejs-ex"
},
{
"name": "SOURCE_URI",
"value": "https://github.com/openshift/nodejs-ex"
},
{
"name": "ORIGIN_VERSION",
"value": "v3.7.1+282e43f-42"
},
{
"name": "ALLOWED_UIDS",
"value": "1-"
},
{
"name": "DROP_CAPS",
"value": "KILL,MKNOD,SETGID,SETUID"
},
{
"name": "PUSH_DOCKERCFG_PATH",
"value": "/var/run/secrets/openshift.io/push"
}
],
"image": "openshift/origin-sti-builder:v3.7.1",
"imagePullPolicy": "IfNotPresent",
"name": "sti-build",
"resources": {},
"securityContext": {
"privileged": true
},
"terminationMessagePath": "/dev/termination-log",
"terminationMessagePolicy": "FallbackToLogsOnError",
"volumeMounts": [
{
"mountPath": "/tmp/build",
"name": "buildworkdir"
},
{
"mountPath": "/var/run/docker.sock",
"name": "docker-socket"
},
{
"mountPath": "/var/run/crio.sock",
"name": "crio-socket"
},
{
"mountPath": "/var/run/secrets/openshift.io/push",
"name": "builder-dockercfg-7bmfs-push",
"readOnly": true
},
{
"mountPath": "/var/run/secrets/kubernetes.io/serviceaccount",
"name": "builder-token-66s7s",
"readOnly": true
}
]
}
],
"dnsPolicy": "ClusterFirst",
"imagePullSecrets": [
{
"name": "builder-dockercfg-7bmfs"
}
],
"initContainers": [
{
"args": [
"--loglevel=0"
],
"command": [
"openshift-git-clone"
],
"env": [
{
"name": "BUILD",
"value": "{\"kind\":\"Build\",\"apiVersion\":\"v1\",\"metadata\":{\"name\":\"nodejs-ex-1\",\"namespace\":\"myproject\",\"selfLink\":\"/apis/build.openshift.io/v1/namespaces/myproject/builds/nodejs-ex-1\",\"uid\":\"edb8337c-2b86-11e8-a0f3-525400689435\",\"resourceVersion\":\"1255\",\"creationTimestamp\":\"2018-03-19T15:05:14Z\",\"labels\":{\"app\":\"nodejs-ex\",\"buildconfig\":\"nodejs-ex\",\"name\":\"myapp\",\"openshift.io/build-config.name\":\"nodejs-ex\",\"openshift.io/build.start-policy\":\"Serial\"},\"annotations\":{\"openshift.io/build-config.name\":\"nodejs-ex\",\"openshift.io/build.number\":\"1\"},\"ownerReferences\":[{\"apiVersion\":\"build.openshift.io/v1\",\"kind\":\"BuildConfig\",\"name\":\"nodejs-ex\",\"uid\":\"ece7f28b-2b86-11e8-a0f3-525400689435\",\"controller\":true}]},\"spec\":{\"serviceAccount\":\"builder\",\"source\":{\"type\":\"Git\",\"git\":{\"uri\":\"https://github.com/openshift/nodejs-ex\"}},\"strategy\":{\"type\":\"Source\",\"sourceStrategy\":{\"from\":{\"kind\":\"DockerImage\",\"name\":\"centos/nodejs-6-centos7@sha256:1f23d374ca052fd024c0a6df2dad234daa843b6ebce000e57d3b3a397dd11460\"}}},\"output\":{\"to\":{\"kind\":\"DockerImage\",\"name\":\"172.30.1.1:5000/myproject/nodejs-ex:latest\"},\"pushSecret\":{\"name\":\"builder-dockercfg-7bmfs\"}},\"resources\":{},\"postCommit\":{},\"nodeSelector\":null,\"triggeredBy\":[{\"message\":\"Build configuration change\"}]},\"status\":{\"phase\":\"New\",\"outputDockerImageReference\":\"172.30.1.1:5000/myproject/nodejs-ex:latest\",\"config\":{\"kind\":\"BuildConfig\",\"namespace\":\"myproject\",\"name\":\"nodejs-ex\"},\"output\":{}}}\n"
},
{
"name": "SOURCE_REPOSITORY",
"value": "https://github.com/openshift/nodejs-ex"
},
{
"name": "SOURCE_URI",
"value": "https://github.com/openshift/nodejs-ex"
},
{
"name": "ORIGIN_VERSION",
"value": "v3.7.1+282e43f-42"
},
{
"name": "ALLOWED_UIDS",
"value": "1-"
},
{
"name": "DROP_CAPS",
"value": "KILL,MKNOD,SETGID,SETUID"
}
],
"image": "openshift/origin-sti-builder:v3.7.1",
"imagePullPolicy": "IfNotPresent",
"name": "git-clone",
"resources": {},
"securityContext": {
"privileged": false
},
"terminationMessagePath": "/dev/termination-log",
"terminationMessagePolicy": "FallbackToLogsOnError",
"volumeMounts": [
{
"mountPath": "/tmp/build",
"name": "buildworkdir"
},
{
"mountPath": "/var/run/secrets/kubernetes.io/serviceaccount",
"name": "builder-token-66s7s",
"readOnly": true
}
]
},
{
"args": [
"--loglevel=0"
],
"command": [
"openshift-manage-dockerfile"
],
"env": [
{
"name": "BUILD",
"value": "{\"kind\":\"Build\",\"apiVersion\":\"v1\",\"metadata\":{\"name\":\"nodejs-ex-1\",\"namespace\":\"myproject\",\"selfLink\":\"/apis/build.openshift.io/v1/namespaces/myproject/builds/nodejs-ex-1\",\"uid\":\"edb8337c-2b86-11e8-a0f3-525400689435\",\"resourceVersion\":\"1255\",\"creationTimestamp\":\"2018-03-19T15:05:14Z\",\"labels\":{\"app\":\"nodejs-ex\",\"buildconfig\":\"nodejs-ex\",\"name\":\"myapp\",\"openshift.io/build-config.name\":\"nodejs-ex\",\"openshift.io/build.start-policy\":\"Serial\"},\"annotations\":{\"openshift.io/build-config.name\":\"nodejs-ex\",\"openshift.io/build.number\":\"1\"},\"ownerReferences\":[{\"apiVersion\":\"build.openshift.io/v1\",\"kind\":\"BuildConfig\",\"name\":\"nodejs-ex\",\"uid\":\"ece7f28b-2b86-11e8-a0f3-525400689435\",\"controller\":true}]},\"spec\":{\"serviceAccount\":\"builder\",\"source\":{\"type\":\"Git\",\"git\":{\"uri\":\"https://github.com/openshift/nodejs-ex\"}},\"strategy\":{\"type\":\"Source\",\"sourceStrategy\":{\"from\":{\"kind\":\"DockerImage\",\"name\":\"centos/nodejs-6-centos7@sha256:1f23d374ca052fd024c0a6df2dad234daa843b6ebce000e57d3b3a397dd11460\"}}},\"output\":{\"to\":{\"kind\":\"DockerImage\",\"name\":\"172.30.1.1:5000/myproject/nodejs-ex:latest\"},\"pushSecret\":{\"name\":\"builder-dockercfg-7bmfs\"}},\"resources\":{},\"postCommit\":{},\"nodeSelector\":null,\"triggeredBy\":[{\"message\":\"Build configuration change\"}]},\"status\":{\"phase\":\"New\",\"outputDockerImageReference\":\"172.30.1.1:5000/myproject/nodejs-ex:latest\",\"config\":{\"kind\":\"BuildConfig\",\"namespace\":\"myproject\",\"name\":\"nodejs-ex\"},\"output\":{}}}\n"
},
{
"name": "SOURCE_REPOSITORY",
"value": "https://github.com/openshift/nodejs-ex"
},
{
"name": "SOURCE_URI",
"value": "https://github.com/openshift/nodejs-ex"
},
{
"name": "ORIGIN_VERSION",
"value": "v3.7.1+282e43f-42"
},
{
"name": "ALLOWED_UIDS",
"value": "1-"
},
{
"name": "DROP_CAPS",
"value": "KILL,MKNOD,SETGID,SETUID"
}
],
"image": "openshift/origin-sti-builder:v3.7.1",
"imagePullPolicy": "IfNotPresent",
"name": "manage-dockerfile",
"resources": {},
"securityContext": {
"privileged": false
},
"terminationMessagePath": "/dev/termination-log",
"terminationMessagePolicy": "FallbackToLogsOnError",
"volumeMounts": [
{
"mountPath": "/tmp/build",
"name": "buildworkdir"
},
{
"mountPath": "/var/run/secrets/kubernetes.io/serviceaccount",
"name": "builder-token-66s7s",
"readOnly": true
}
]
}
],
"nodeName": "localhost",
"restartPolicy": "Never",
"schedulerName": "default-scheduler",
"securityContext": {},
"serviceAccount": "builder",
"serviceAccountName": "builder",
"terminationGracePeriodSeconds": 30,
"volumes": [
{
"emptyDir": {},
"name": "buildworkdir"
},
{
"hostPath": {
"path": "/var/run/docker.sock"
},
"name": "docker-socket"
},
{
"hostPath": {
"path": "/var/run/crio.sock"
},
"name": "crio-socket"
},
{
"name": "builder-dockercfg-7bmfs-push",
"secret": {
"defaultMode": 384,
"secretName": "builder-dockercfg-7bmfs"
}
},
{
"name": "builder-token-66s7s",
"secret": {
"defaultMode": 420,
"secretName": "builder-token-66s7s"
}
}
]
},
"status": {
"conditions": [
{
"lastProbeTime": null,
"lastTransitionTime": "2018-03-19T15:05:18Z",
"message": "containers with incomplete status: [git-clone manage-dockerfile]",
"reason": "ContainersNotInitialized",
"status": "False",
"type": "Initialized"
},
{
"lastProbeTime": null,
"lastTransitionTime": "2018-03-19T15:05:18Z",
"message": "containers with unready status: [sti-build]",
"reason": "ContainersNotReady",
"status": "False",
"type": "Ready"
},
{
"lastProbeTime": null,
"lastTransitionTime": "2018-03-19T15:05:18Z",
"status": "True",
"type": "PodScheduled"
}
],
"containerStatuses": [
{
"image": "openshift/origin-sti-builder:v3.7.1",
"imageID": "",
"lastState": {},
"name": "sti-build",
"ready": false,
"restartCount": 0,
"state": {
"waiting": {
"reason": "PodInitializing"
}
}
}
],
"hostIP": "192.168.122.27",
"initContainerStatuses": [
{
"containerID": "docker://9ec338ee2b6a4d8f2723f985e1ea65426cea7ca9bac5951968d153afbcf4d90f",
"image": "openshift/origin-sti-builder:v3.7.1",
"imageID": "docker-pullable://openshift/origin-sti-builder@sha256:46dd04503c7f1bf2d07bd962925c437e45d3dc4964aa81647a386030df5d4cbc",
"lastState": {},
"name": "git-clone",
"ready": false,
"restartCount": 0,
"state": {
"terminated": {
"containerID": "docker://9ec338ee2b6a4d8f2723f985e1ea65426cea7ca9bac5951968d153afbcf4d90f",
"exitCode": 1,
"finishedAt": "2018-03-19T15:05:29Z",
"message": "Cloning \"https://github.com/openshift/nodejs-ex\" ...\nerror: fatal: unable to access 'https://github.com/openshift/nodejs-ex/': Could not resolve host: github.com; Unknown error\n",
"reason": "Error",
"startedAt": "2018-03-19T15:05:26Z"
}
}
},
{
"image": "openshift/origin-sti-builder:v3.7.1",
"imageID": "",
"lastState": {},
"name": "manage-dockerfile",
"ready": false,
"restartCount": 0,
"state": {
"waiting": {
"reason": "PodInitializing"
}
}
}
],
"phase": "Failed",
"podIP": "172.17.0.2",
"qosClass": "BestEffort",
"startTime": "2018-03-19T15:05:18Z"
}
},
{
"apiVersion": "v1",
"kind": "Service",
"metadata": {
"annotations": {
"openshift.io/generated-by": "OpenShiftNewApp"
},
"creationTimestamp": "2018-03-19T15:05:13Z",
"labels": {
"app": "nodejs-ex",
"name": "myapp"
},
"name": "nodejs-ex",
"namespace": "myproject",
"resourceVersion": "1249",
"selfLink": "/api/v1/namespaces/myproject/services/nodejs-ex",
"uid": "ecfb36b5-2b86-11e8-a0f3-525400689435"
},
"spec": {
"clusterIP": "172.30.131.11",
"ports": [
{
"name": "8080-tcp",
"port": 8080,
"protocol": "TCP",
"targetPort": 8080
}
],
"selector": {
"app": "nodejs-ex",
"deploymentconfig": "nodejs-ex",
"name": "myapp"
},
"sessionAffinity": "None",
"type": "ClusterIP"
},
"status": {
"loadBalancer": {}
}
}
],
"kind": "List",
"metadata": {
"resourceVersion": "",
"selfLink": ""
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment