Skip to content

Instantly share code, notes, and snippets.

@christopheblin
Created July 2, 2021 12:15
Show Gist options
  • Save christopheblin/b06018d33faa84f2d5ba1e9e538b2381 to your computer and use it in GitHub Desktop.
Save christopheblin/b06018d33faa84f2d5ba1e9e538b2381 to your computer and use it in GitHub Desktop.
K8s initialized to ready
apiVersion: v1
kind: Pod
metadata:
annotations:
workflows.argoproj.io/node-name: rt-coverage-gq4zh[0].mystep(0:xxx)
workflows.argoproj.io/outputs: '{"artifacts":[{"name":"main-logs","s3":{"key":"rt-coverage-gq4zh/rt-coverage-gq4zh-2289117842/main.log"}}]}'
workflows.argoproj.io/template: '{"name":"rt-coverage-mystep","inputs":{"parameters":[{"name":"coverage","value":"xxx"},{"name":"dataset","value":"xxx"}]},"outputs":{},"metadata":{"labels":{"coverage":"xxx","stepName":"mystep"}},"container":{"name":"","image":"registry.xxx.fr/mybus/loth/mystep","command":["/bin/sh"],"args":["-c","/app/exec.sh"],"envFrom":[{"secretRef":{"name":"argo-influx-secret"}},{"secretRef":{"name":"argo-xxx-xxx"}}],"env":[{"name":"COVERAGE","value":"xxx"},{"name":"DATASET","value":"xxx"}],"resources":{},"volumeMounts":[{"name":"out","mountPath":"/out"},{"name":"my-volume","mountPath":"/data"}]},"volumes":[{"name":"out","emptyDir":{}},{"name":"my-volume","persistentVolumeClaim":{"claimName":"my-share"}}],"archiveLocation":{"archiveLogs":true,"s3":{"endpoint":"minio:9000","bucket":"argo","insecure":true,"accessKeySecret":{"name":"argo-storage-secret","key":"accessKey"},"secretKeySecret":{"name":"argo-storage-secret","key":"secretKey"},"key":"rt-coverage-gq4zh/rt-coverage-gq4zh-2289117842"}},"activeDeadlineSeconds":"3600","timeout":"2h"}'
creationTimestamp: "2021-07-02T12:06:08Z"
labels:
coverage: xxx
stepName: mystep
workflows.argoproj.io/completed: "true"
workflows.argoproj.io/workflow: rt-coverage-gq4zh
managedFields:
- apiVersion: v1
fieldsType: FieldsV1
fieldsV1:
f:metadata:
f:annotations:
.: {}
f:workflows.argoproj.io/node-name: {}
f:workflows.argoproj.io/template: {}
f:labels:
.: {}
f:coverage: {}
f:stepName: {}
f:workflows.argoproj.io/completed: {}
f:workflows.argoproj.io/workflow: {}
f:ownerReferences:
.: {}
k:{"uid":"1dda4765-6cf0-416e-9bcb-df7ec1638323"}:
.: {}
f:apiVersion: {}
f:blockOwnerDeletion: {}
f:controller: {}
f:kind: {}
f:name: {}
f:uid: {}
f:spec:
f:activeDeadlineSeconds: {}
f:containers:
k:{"name":"main"}:
.: {}
f:args: {}
f:command: {}
f:env:
.: {}
k:{"name":"ARGO_CONTAINER_NAME"}:
.: {}
f:name: {}
f:value: {}
k:{"name":"ARGO_INCLUDE_SCRIPT_OUTPUT"}:
.: {}
f:name: {}
f:value: {}
k:{"name":"COVERAGE"}:
.: {}
f:name: {}
f:value: {}
k:{"name":"DATASET"}:
.: {}
f:name: {}
f:value: {}
f:envFrom: {}
f:image: {}
f:imagePullPolicy: {}
f:name: {}
f:resources: {}
f:terminationMessagePath: {}
f:terminationMessagePolicy: {}
f:volumeMounts:
.: {}
k:{"mountPath":"/data"}:
.: {}
f:mountPath: {}
f:name: {}
k:{"mountPath":"/out"}:
.: {}
f:mountPath: {}
f:name: {}
k:{"name":"wait"}:
.: {}
f:command: {}
f:env:
.: {}
k:{"name":"ARGO_CONTAINER_NAME"}:
.: {}
f:name: {}
f:value: {}
k:{"name":"ARGO_CONTAINER_RUNTIME_EXECUTOR"}:
.: {}
f:name: {}
f:value: {}
k:{"name":"ARGO_INCLUDE_SCRIPT_OUTPUT"}:
.: {}
f:name: {}
f:value: {}
k:{"name":"ARGO_POD_NAME"}:
.: {}
f:name: {}
f:valueFrom:
.: {}
f:fieldRef:
.: {}
f:apiVersion: {}
f:fieldPath: {}
k:{"name":"GODEBUG"}:
.: {}
f:name: {}
f:value: {}
f:image: {}
f:imagePullPolicy: {}
f:name: {}
f:resources: {}
f:terminationMessagePath: {}
f:terminationMessagePolicy: {}
f:volumeMounts:
.: {}
k:{"mountPath":"/argo/podmetadata"}:
.: {}
f:mountPath: {}
f:name: {}
k:{"mountPath":"/argo/secret/argo-storage-secret"}:
.: {}
f:mountPath: {}
f:name: {}
f:readOnly: {}
k:{"mountPath":"/mainctrfs/data"}:
.: {}
f:mountPath: {}
f:name: {}
k:{"mountPath":"/mainctrfs/out"}:
.: {}
f:mountPath: {}
f:name: {}
f:dnsPolicy: {}
f:enableServiceLinks: {}
f:restartPolicy: {}
f:schedulerName: {}
f:securityContext: {}
f:serviceAccount: {}
f:serviceAccountName: {}
f:terminationGracePeriodSeconds: {}
f:volumes:
.: {}
k:{"name":"argo-storage-secret"}:
.: {}
f:name: {}
f:secret:
.: {}
f:defaultMode: {}
f:items: {}
f:secretName: {}
k:{"name":"my-volume"}:
.: {}
f:name: {}
f:persistentVolumeClaim:
.: {}
f:claimName: {}
k:{"name":"out"}:
.: {}
f:emptyDir: {}
f:name: {}
k:{"name":"podmetadata"}:
.: {}
f:downwardAPI:
.: {}
f:defaultMode: {}
f:items: {}
f:name: {}
manager: workflow-controller
operation: Update
time: "2021-07-02T12:06:08Z"
- apiVersion: v1
fieldsType: FieldsV1
fieldsV1:
f:metadata:
f:annotations:
f:workflows.argoproj.io/outputs: {}
manager: argoexec
operation: Update
time: "2021-07-02T12:06:20Z"
- apiVersion: v1
fieldsType: FieldsV1
fieldsV1:
f:status:
f:conditions:
k:{"type":"ContainersReady"}:
.: {}
f:lastProbeTime: {}
f:lastTransitionTime: {}
f:reason: {}
f:status: {}
f:type: {}
k:{"type":"Initialized"}:
.: {}
f:lastProbeTime: {}
f:lastTransitionTime: {}
f:reason: {}
f:status: {}
f:type: {}
k:{"type":"Ready"}:
.: {}
f:lastProbeTime: {}
f:lastTransitionTime: {}
f:reason: {}
f:status: {}
f:type: {}
f:containerStatuses: {}
f:hostIP: {}
f:phase: {}
f:podIP: {}
f:podIPs:
.: {}
k:{"ip":"10.240.0.165"}:
.: {}
f:ip: {}
f:startTime: {}
manager: kubelet
operation: Update
time: "2021-07-02T12:06:21Z"
name: rt-coverage-gq4zh-2289117842
namespace: staging-argo
ownerReferences:
- apiVersion: argoproj.io/v1alpha1
blockOwnerDeletion: true
controller: true
kind: Workflow
name: rt-coverage-gq4zh
uid: 1dda4765-6cf0-416e-9bcb-df7ec1638323
resourceVersion: "479389005"
uid: 0f09e333-8521-4926-bdb0-41bfd2c2c6d2
spec:
activeDeadlineSeconds: 7199
containers:
- command:
- argoexec
- wait
- --loglevel
- info
env:
- name: ARGO_POD_NAME
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.name
- name: ARGO_CONTAINER_RUNTIME_EXECUTOR
value: k8sapi
- name: GODEBUG
value: x509ignoreCN=0
- name: ARGO_CONTAINER_NAME
value: wait
- name: ARGO_INCLUDE_SCRIPT_OUTPUT
value: "false"
image: argoproj/argoexec:v3.1.0-rc12
imagePullPolicy: IfNotPresent
name: wait
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /argo/podmetadata
name: podmetadata
- mountPath: /argo/secret/argo-storage-secret
name: argo-storage-secret
readOnly: true
- mountPath: /mainctrfs/out
name: out
- mountPath: /mainctrfs/data
name: my-volume
- mountPath: /var/run/secrets/kubernetes.io/serviceaccount
name: argo-token-nzkch
readOnly: true
- args:
- -c
- /app/exec.sh
command:
- /bin/sh
env:
- name: COVERAGE
value: xxx
- name: DATASET
value: xxx
- name: ARGO_CONTAINER_NAME
value: main
- name: ARGO_INCLUDE_SCRIPT_OUTPUT
value: "false"
envFrom:
- secretRef:
name: argo-influx-secret
- secretRef:
name: argo-xxx-xxx
image: registry.xxx.fr/mybus/loth/mystep
imagePullPolicy: Always
name: main
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /out
name: out
- mountPath: /data
name: my-volume
- mountPath: /var/run/secrets/kubernetes.io/serviceaccount
name: argo-token-nzkch
readOnly: true
dnsPolicy: ClusterFirst
enableServiceLinks: true
imagePullSecrets:
- name: gitlab-registry
nodeName: aks-nodepool3-34964020-vmss000004
preemptionPolicy: PreemptLowerPriority
priority: 0
restartPolicy: Never
schedulerName: default-scheduler
securityContext: {}
serviceAccount: argo
serviceAccountName: argo
terminationGracePeriodSeconds: 30
tolerations:
- effect: NoExecute
key: node.kubernetes.io/not-ready
operator: Exists
tolerationSeconds: 300
- effect: NoExecute
key: node.kubernetes.io/unreachable
operator: Exists
tolerationSeconds: 300
volumes:
- downwardAPI:
defaultMode: 420
items:
- fieldRef:
apiVersion: v1
fieldPath: metadata.annotations
path: annotations
name: podmetadata
- emptyDir: {}
name: out
- name: my-volume
persistentVolumeClaim:
claimName: my-share
- name: argo-storage-secret
secret:
defaultMode: 420
items:
- key: accessKey
path: accessKey
- key: secretKey
path: secretKey
secretName: argo-storage-secret
- name: argo-token-nzkch
secret:
defaultMode: 420
secretName: argo-token-nzkch
status:
conditions:
- lastProbeTime: null
lastTransitionTime: "2021-07-02T12:06:08Z"
reason: PodCompleted
status: "True"
type: Initialized
- lastProbeTime: null
lastTransitionTime: "2021-07-02T12:06:20Z"
reason: PodCompleted
status: "False"
type: Ready
- lastProbeTime: null
lastTransitionTime: "2021-07-02T12:06:20Z"
reason: PodCompleted
status: "False"
type: ContainersReady
- lastProbeTime: null
lastTransitionTime: "2021-07-02T12:06:08Z"
status: "True"
type: PodScheduled
containerStatuses:
- containerID: containerd://3a773611e3d89b9787ed35c2976d3e6f2b511531e943a55440783ff61240e5f2
image: registry.xxx.fr/mybus/loth/mystep:latest
imageID: registry.xxx.fr/mybus/loth/mystep@sha256:039d83d24a16e61349c1b9100e4dbcee9300b7fbb071553c5602e86c8595b495
lastState: {}
name: main
ready: false
restartCount: 0
started: false
state:
terminated:
containerID: containerd://3a773611e3d89b9787ed35c2976d3e6f2b511531e943a55440783ff61240e5f2
exitCode: 0
finishedAt: "2021-07-02T12:06:19Z"
reason: Completed
startedAt: "2021-07-02T12:06:10Z"
- containerID: containerd://038d77363c90c926b46c53a04aff25ae6b5d5da84bd282e7b44540a49fc47a65
image: docker.io/argoproj/argoexec:v3.1.0-rc12
imageID: docker.io/argoproj/argoexec@sha256:8da81e961aed9a44b210c41a3d2d9424f45c04cb64d305697e0d96d8cd8f54dc
lastState: {}
name: wait
ready: false
restartCount: 0
started: false
state:
terminated:
containerID: containerd://038d77363c90c926b46c53a04aff25ae6b5d5da84bd282e7b44540a49fc47a65
exitCode: 0
finishedAt: "2021-07-02T12:06:20Z"
reason: Completed
startedAt: "2021-07-02T12:06:10Z"
hostIP: 10.240.0.6
phase: Succeeded
podIP: 10.240.0.165
podIPs:
- ip: 10.240.0.165
qosClass: BestEffort
startTime: "2021-07-02T12:06:08Z"
rt-coverage-gq4zh-2289117842,Initialized,2021-07-02T12:06:08Z
Ready,2021-07-02T12:06:20Z
ContainersReady,2021-07-02T12:06:20Z
PodScheduled,2021-07-02T12:06:08Z
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment