Skip to content

Instantly share code, notes, and snippets.

@jorgemoralespou
Last active February 27, 2020 14:23
Show Gist options
  • Save jorgemoralespou/3134ff308b13139ec9a8a8dac4eebc60 to your computer and use it in GitHub Desktop.
Save jorgemoralespou/3134ff308b13139ec9a8a8dac4eebc60 to your computer and use it in GitHub Desktop.
Target cluster 'https://api.tanzu.xxxxx.xxx:6443' (nodes: ip-10-0-xxx-xx.us-east-2.compute.internal, 5+)
Resources in app 'tekton-sample'
Namespace Name Kind Owner Conds. Rs Ri Age
(cluster) tekton-example Namespace kapp - ok - 5m
tekton-example admin RoleBinding kapp - ok - 5m
^ api Deployment kapp 2/2 t ok - 5m
^ api Endpoints cluster - ok - 5m
^ api Service kapp - ok - 5m
^ api-559f5797f6 ReplicaSet cluster - ok - 1m
^ api-84c6ddc4dd ReplicaSet cluster - ok - 5m
^ api-84c6ddc4dd-7mm25 Pod cluster 4/4 t ok - 1m
^ api-image PipelineResource kapp - ok - 5m
^ api-repo PipelineResource kapp - ok - 5m
^ apply-manifests Task kapp - ok - 5m
^ build-and-deploy Pipeline kapp - ok - 5m
^ build-and-deploy-ver-1 PipelineRun kapp 0/1 t ok - 5m
^ build-and-deploy-ver-2 PipelineRun cluster 0/1 t ok - 4m
^ build-and-deploy-ver-2-apply-api-manifests-psdj7 TaskRun cluster 1/1 t ok - 2m
^ build-and-deploy-ver-2-apply-api-manifests-psdj7-pod-hcsn7 Pod cluster 2/4 t ok - 2m
^ build-and-deploy-ver-2-build-api-8q6xf TaskRun cluster 1/1 t ok - 4m
^ build-and-deploy-ver-2-build-api-8q6xf-pod-v5hjj Pod cluster 2/4 t ok - 4m
^ build-and-deploy-ver-2-build-api-9kj24 TaskRun cluster 1/1 t ok - 4m
^ build-and-deploy-ver-2-build-api-9kj24-pod-9zwdq Pod cluster 2/4 t ok - 4m
^ build-and-deploy-ver-2-build-ui-7kmc4 TaskRun cluster 0/1 t ok - 4m
^ build-and-deploy-ver-2-build-ui-7kmc4-pod-g9d4c Pod cluster 2/4 t ok - 4m
^ build-and-deploy-ver-2-build-ui-j5ms7 TaskRun cluster 1/1 t ok - 4m
^ build-and-deploy-ver-2-build-ui-j5ms7-pod-bg5zz Pod cluster 2/4 t ok - 4m
^ build-and-deploy-ver-2-update-api-image-7l7wh TaskRun cluster 1/1 t ok - 2m
^ build-and-deploy-ver-2-update-api-image-7l7wh-pod-5hcg8 Pod cluster 2/4 t ok - 2m
^ ui Deployment kapp 2/2 t ok - 5m
^ ui Endpoints cluster - ok - 5m
^ ui Route kapp - ok - 5m
^ ui Service kapp - ok - 5m
^ ui-5b5f854548 ReplicaSet cluster - ok - 5m
^ ui-5b5f854548-6gdt9 Pod cluster 4/4 t ok - 5m
^ ui-5b5f854548-6gdt9 PodMetrics cluster - ok - 2s
^ ui-image PipelineResource kapp - ok - 5m
^ ui-repo PipelineResource kapp - ok - 5m
^ update-deployment Task kapp - ok - 5m
Rs: Reconcile state
Ri: Reconcile information
36 resources
Succeeded
apiVersion: tekton.dev/v1alpha1
kind: PipelineRun
metadata:
annotations:
kapp.k14s.io/identity: v1;tekton-example/tekton.dev/PipelineRun/build-and-deploy-ver-1;tekton.dev/v1alpha1
kapp.k14s.io/nonce: "1582809426682582000"
kapp.k14s.io/original: '{"apiVersion":"tekton.dev/v1alpha1","kind":"PipelineRun","metadata":{"annotations":{"kapp.k14s.io/nonce":"1582809426682582000","kapp.k14s.io/versioned":""},"labels":{"kapp.k14s.io/app":"1582809425979881000","kapp.k14s.io/association":"v1.7e81620f63c24a56771328b853c22d3d"},"name":"build-and-deploy-ver-1","namespace":"tekton-example"},"spec":{"pipelineRef":{"name":"build-and-deploy"},"resources":[{"name":"api-repo","resourceRef":{"name":"api-repo"}},{"name":"api-image","resourceRef":{"name":"api-image"}},{"name":"ui-repo","resourceRef":{"name":"api-repo"}},{"name":"ui-image","resourceRef":{"name":"api-image"}}],"serviceAccountName":"pipeline","timeout":"1h0m0s"}}'
kapp.k14s.io/original-diff: |
[]
kapp.k14s.io/original-diff-full: ""
kapp.k14s.io/original-diff-md5: 58e0494c51d30eb3494f7c9198986bb9
kapp.k14s.io/versioned: ""
creationTimestamp: "2020-02-27T13:17:12Z"
generation: 1
labels:
kapp.k14s.io/app: "1582809425979881000"
kapp.k14s.io/association: v1.7e81620f63c24a56771328b853c22d3d
name: build-and-deploy-ver-1
namespace: tekton-example
resourceVersion: "683294"
selfLink: /apis/tekton.dev/v1alpha1/namespaces/tekton-example/pipelineruns/build-and-deploy-ver-1
uid: 13c268e3-7858-4f27-8ebd-0bf4c68deabb
spec:
pipelineRef:
name: build-and-deploy
resources:
- name: api-repo
resourceRef:
name: api-repo
- name: api-image
resourceRef:
name: api-image
- name: ui-repo
resourceRef:
name: api-repo
- name: ui-image
resourceRef:
name: api-image
serviceAccountName: pipeline
timeout: 1h0m0s
status:
completionTime: "2020-02-27T13:17:12Z"
conditions:
- lastTransitionTime: "2020-02-27T13:17:12Z"
message: 'Error retrieving pipeline for pipelinerun tekton-example/build-and-deploy-ver-1:
error when listing pipelines for pipelineRun build-and-deploy-ver-1: pipeline.tekton.dev
"build-and-deploy" not found'
reason: CouldntGetPipeline
status: "False"
type: Succeeded
startTime: "2020-02-27T13:17:12Z"
apiVersion: tekton.dev/v1alpha1
kind: PipelineRun
metadata:
annotations:
kapp.k14s.io/identity: v1;tekton-example/tekton.dev/Pipeline/build-and-deploy;tekton.dev/v1alpha1
kapp.k14s.io/nonce: "1582809477804217000"
kapp.k14s.io/original: '{"apiVersion":"tekton.dev/v1alpha1","kind":"Pipeline","metadata":{"labels":{"kapp.k14s.io/app":"1582809425979881000","kapp.k14s.io/association":"v1.2d03180f51d82c4827e29627dc2622c7"},"name":"build-and-deploy","namespace":"tekton-example"},"spec":{"resources":[{"name":"api-repo","type":"git"},{"name":"api-image","type":"image"},{"name":"ui-repo","type":"git"},{"name":"ui-image","type":"image"}],"tasks":[{"name":"build-api","params":[{"name":"TLSVERIFY","value":"false"}],"resources":{"inputs":[{"name":"source","resource":"api-repo"}],"outputs":[{"name":"image","resource":"api-image"}]},"taskRef":{"kind":"ClusterTask","name":"buildah"}},{"name":"apply-api-manifests","resources":{"inputs":[{"name":"source","resource":"api-repo"}]},"runAfter":["build-api"],"taskRef":{"name":"apply-manifests"}},{"name":"update-api-image","params":[{"name":"deployment","value":"api"}],"resources":{"inputs":[{"name":"image","resource":"api-image"}]},"runAfter":["apply-api-manifests"],"taskRef":{"name":"update-deployment"}},{"name":"build-ui","params":[{"name":"TLSVERIFY","value":"false"}],"resources":{"inputs":[{"name":"source","resource":"ui-repo"}],"outputs":[{"name":"image","resource":"ui-image"}]},"taskRef":{"kind":"ClusterTask","name":"s2i-python-3"}},{"name":"apply-ui-manifests","resources":{"inputs":[{"name":"source","resource":"ui-repo"}]},"runAfter":["build-ui","update-api-image"],"taskRef":{"name":"apply-manifests"}},{"name":"update-ui-image","params":[{"name":"deployment","value":"ui"}],"resources":{"inputs":[{"name":"image","resource":"ui-image"}]},"runAfter":["apply-ui-manifests"],"taskRef":{"name":"update-deployment"}}]}}'
kapp.k14s.io/original-diff: |
- type: test
path: /metadata/annotations
value: {}
- type: remove
path: /metadata/annotations
- type: test
path: /spec/tasks/1/taskRef/kind
value: Task
- type: remove
path: /spec/tasks/1/taskRef/kind
- type: test
path: /spec/tasks/2/taskRef/kind
value: Task
- type: remove
path: /spec/tasks/2/taskRef/kind
- type: test
path: /spec/tasks/4/taskRef/kind
value: Task
- type: remove
path: /spec/tasks/4/taskRef/kind
- type: test
path: /spec/tasks/5/taskRef/kind
value: Task
- type: remove
path: /spec/tasks/5/taskRef/kind
kapp.k14s.io/original-diff-full: ""
kapp.k14s.io/original-diff-md5: 9d243de3a041137ee0f79687ac12b22a
kapp.k14s.io/versioned: ""
creationTimestamp: "2020-02-27T13:18:03Z"
generation: 1
labels:
kapp.k14s.io/app: "1582809425979881000"
kapp.k14s.io/association: v1.2d03180f51d82c4827e29627dc2622c7
tekton.dev/pipeline: build-and-deploy
name: build-and-deploy-ver-2
namespace: tekton-example
resourceVersion: "685914"
selfLink: /apis/tekton.dev/v1alpha1/namespaces/tekton-example/pipelineruns/build-and-deploy-ver-2
uid: c694241d-6869-41f2-b301-ae67fce68393
spec:
pipelineRef:
name: build-and-deploy
resources:
- name: api-repo
resourceRef:
name: api-repo
- name: api-image
resourceRef:
name: api-image
- name: ui-repo
resourceRef:
name: api-repo
- name: ui-image
resourceRef:
name: api-image
serviceAccountName: pipeline
timeout: 1h0m0s
status:
conditions:
- lastTransitionTime: "2020-02-27T13:18:04Z"
message: Not all Tasks in the Pipeline have finished executing
reason: Running
status: Unknown
type: Succeeded
startTime: "2020-02-27T13:18:04Z"
taskRuns:
build-and-deploy-ver-2-apply-api-manifests-psdj7:
pipelineTaskName: apply-api-manifests
status:
completionTime: "2020-02-27T13:20:22Z"
conditions:
- lastTransitionTime: "2020-02-27T13:20:22Z"
message: All Steps have completed executing
reason: Succeeded
status: "True"
type: Succeeded
podName: build-and-deploy-ver-2-apply-api-manifests-psdj7-pod-hcsn7
resourcesResult:
- digest: ""
key: commit
name: ""
resourceRef: {}
value: 374d1daa9ee175fcf590cb62402ed43076973b0d
startTime: "2020-02-27T13:20:03Z"
steps:
- container: step-apply
imageID: quay.io/openshift/origin-cli@sha256:9bbc48ded57e662103f226217855caf107b957fbb4febb7da650bfe25d307f7b
name: apply
terminated:
containerID: cri-o://ac6e19aad8af65bc85963884d6888c68dc6bcfddb6e5ccfa1f4f5bc39d2207fb
exitCode: 0
finishedAt: "2020-02-27T13:20:22Z"
reason: Completed
startedAt: "2020-02-27T13:20:19Z"
- container: step-git-source-api-repo-b4f9z
imageID: quay.io/openshift-pipeline/tektoncd-pipeline-git-init@sha256:0956ae04297fe4740af495ec1d6d51bd7fbd79686f5d5a4ea09ca44c4e9838cf
name: git-source-api-repo-b4f9z
terminated:
containerID: cri-o://38f9e9c6ec1223227d4eea3a358e72126b0a98f2ca625e4b83fa1aff91be101e
exitCode: 0
finishedAt: "2020-02-27T13:20:19Z"
message: '[{"name":"","digest":"","key":"commit","value":"374d1daa9ee175fcf590cb62402ed43076973b0d","resourceRef":{}}]'
reason: Completed
startedAt: "2020-02-27T13:20:17Z"
build-and-deploy-ver-2-build-api-8q6xf:
pipelineTaskName: build-api
status:
completionTime: "2020-02-27T13:20:03Z"
conditions:
- lastTransitionTime: "2020-02-27T13:20:03Z"
message: All Steps have completed executing
reason: Succeeded
status: "True"
type: Succeeded
podName: build-and-deploy-ver-2-build-api-8q6xf-pod-v5hjj
resourcesResult:
- digest: ""
key: commit
name: ""
resourceRef: {}
value: 374d1daa9ee175fcf590cb62402ed43076973b0d
startTime: "2020-02-27T13:18:04Z"
steps:
- container: step-build
imageID: quay.io/buildah/stable@sha256:15ecf2c5a3d013221e366549802c79eed2db7aebeb6bbf492b13d2d877df792a
name: build
terminated:
containerID: cri-o://fae0e340b9ae8239246298b5a575757c6212e5039fcee91b9b462febfd58b2d3
exitCode: 0
finishedAt: "2020-02-27T13:19:56Z"
reason: Completed
startedAt: "2020-02-27T13:18:21Z"
- container: step-push
imageID: quay.io/buildah/stable@sha256:15ecf2c5a3d013221e366549802c79eed2db7aebeb6bbf492b13d2d877df792a
name: push
terminated:
containerID: cri-o://20fd8794c01750f9e6fbf66fc909a72b609b4cbc5a38adf9f3812dac12393a12
exitCode: 0
finishedAt: "2020-02-27T13:20:02Z"
reason: Completed
startedAt: "2020-02-27T13:19:57Z"
- container: step-git-source-api-repo-272wp
imageID: quay.io/openshift-pipeline/tektoncd-pipeline-git-init@sha256:0956ae04297fe4740af495ec1d6d51bd7fbd79686f5d5a4ea09ca44c4e9838cf
name: git-source-api-repo-272wp
terminated:
containerID: cri-o://fd8e9f3fe7971c8ca15e343568cb64d5e0a4ac6b5a767e5cb3be51b9958aaedf
exitCode: 0
finishedAt: "2020-02-27T13:18:21Z"
message: '[{"name":"","digest":"","key":"commit","value":"374d1daa9ee175fcf590cb62402ed43076973b0d","resourceRef":{}}]'
reason: Completed
startedAt: "2020-02-27T13:18:20Z"
- container: step-image-digest-exporter-26s87
imageID: quay.io/openshift-pipeline/tektoncd-pipeline-imagedigestexporter@sha256:bc12f889c9f28f7f7efeb9854df0e390869fdf1b6505bea31a4c17b3014becd3
name: image-digest-exporter-26s87
terminated:
containerID: cri-o://2dce2c9fe70e45ab4b38a225da38a085feda8a96bf38e7070fde28ba1cd6e352
exitCode: 0
finishedAt: "2020-02-27T13:20:02Z"
reason: Completed
startedAt: "2020-02-27T13:20:02Z"
- container: step-create-dir-image-vhsq7
imageID: registry.access.redhat.com/ubi8/ubi-minimal@sha256:47e2f82dbede8ff990e6e240f82d78830e7558f7b30df7bd8c0693992018b1e3
name: create-dir-image-vhsq7
terminated:
containerID: cri-o://9091977801c78a5164980ee6046fb57a0a40e598947b9b55b7972f363909ce25
exitCode: 0
finishedAt: "2020-02-27T13:18:20Z"
reason: Completed
startedAt: "2020-02-27T13:18:20Z"
build-and-deploy-ver-2-build-ui-7kmc4:
pipelineTaskName: build-ui
status:
conditions:
- lastTransitionTime: "2020-02-27T13:18:19Z"
message: Not all Steps in the Task have finished executing
reason: Running
status: Unknown
type: Succeeded
podName: build-and-deploy-ver-2-build-ui-7kmc4-pod-g9d4c
startTime: "2020-02-27T13:18:04Z"
steps:
- container: step-generate
imageID: quay.io/openshift-pipeline/s2i@sha256:ffdacde51b8719548dfb727d6833b3df72fe4f598f0869d0b3815e838548688c
name: generate
terminated:
containerID: cri-o://1d3755074a26518d6c7333ea60f18df10446681db8bc866973cad71f78c0333b
exitCode: 0
finishedAt: "2020-02-27T13:18:22Z"
reason: Completed
startedAt: "2020-02-27T13:18:22Z"
- container: step-build
imageID: quay.io/buildah/stable@sha256:52a993631e5f13f142c1de0ac19ed2188a1a4190bf4530ecaecb23bece0289c3
name: build
terminated:
containerID: cri-o://c6cd97ccdeb43acf8d610ec56a9597fbd239f2a90b258d7252d5a72860f5aa9b
exitCode: 0
finishedAt: "2020-02-27T13:21:05Z"
reason: Completed
startedAt: "2020-02-27T13:18:23Z"
- container: step-push
imageID: quay.io/buildah/stable@sha256:52a993631e5f13f142c1de0ac19ed2188a1a4190bf4530ecaecb23bece0289c3
name: push
running:
startedAt: "2020-02-27T13:18:18Z"
- container: step-git-source-api-repo-hj5tp
imageID: quay.io/openshift-pipeline/tektoncd-pipeline-git-init@sha256:0956ae04297fe4740af495ec1d6d51bd7fbd79686f5d5a4ea09ca44c4e9838cf
name: git-source-api-repo-hj5tp
terminated:
containerID: cri-o://0061bb1cdb251731c71ac9a222ff4836104ffad8c17a739df0091a0af3e18dc4
exitCode: 0
finishedAt: "2020-02-27T13:18:22Z"
message: '[{"name":"","digest":"","key":"commit","value":"374d1daa9ee175fcf590cb62402ed43076973b0d","resourceRef":{}}]'
reason: Completed
startedAt: "2020-02-27T13:18:21Z"
- container: step-image-digest-exporter-kpc8n
imageID: quay.io/openshift-pipeline/tektoncd-pipeline-imagedigestexporter@sha256:bc12f889c9f28f7f7efeb9854df0e390869fdf1b6505bea31a4c17b3014becd3
name: image-digest-exporter-kpc8n
running:
startedAt: "2020-02-27T13:18:19Z"
- container: step-create-dir-image-rlp8m
imageID: registry.access.redhat.com/ubi8/ubi-minimal@sha256:47e2f82dbede8ff990e6e240f82d78830e7558f7b30df7bd8c0693992018b1e3
name: create-dir-image-rlp8m
terminated:
containerID: cri-o://3acd5e17ccf0bf32b5e884c21111f997fb657bc7e9ad3af38c19792dee3dc602
exitCode: 0
finishedAt: "2020-02-27T13:18:20Z"
reason: OOMKilled
startedAt: "2020-02-27T13:18:20Z"
build-and-deploy-ver-2-update-api-image-7l7wh:
pipelineTaskName: update-api-image
status:
completionTime: "2020-02-27T13:20:35Z"
conditions:
- lastTransitionTime: "2020-02-27T13:20:35Z"
message: All Steps have completed executing
reason: Succeeded
status: "True"
type: Succeeded
podName: build-and-deploy-ver-2-update-api-image-7l7wh-pod-5hcg8
startTime: "2020-02-27T13:20:22Z"
steps:
- container: step-patch
imageID: quay.io/openshift/origin-cli@sha256:9bbc48ded57e662103f226217855caf107b957fbb4febb7da650bfe25d307f7b
name: patch
terminated:
containerID: cri-o://4a30f7ad18749cc8d9ad516938c04a61bfe8115613955e33186d24659dce6b5e
exitCode: 0
finishedAt: "2020-02-27T13:20:35Z"
reason: Completed
startedAt: "2020-02-27T13:20:34Z"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment