Debug Argo workflow

Debug a pod#

To get into the container. Create YAML with command tail /dev/null to keep it running.

Example of test pod in tests/test-devnull-pod.yml:

apiVersion: v1
kind: Pod
metadata:
labels:
purpose: test
name: test-devnull-pod
spec:
volumes:
- name: workdir
hostPath:
path: /data/d2s-workspace
type: Directory
# persistentVolumeClaim:
# claimName: d2s-storage
containers:
- name: test-devnull
# Change the image to test here
image: umids/rdfunit:latest
command: [ "tail", "-f", "/dev/null"]
resources:
limits:
cpu: 1000m
memory: 10Gi
volumeMounts:
- name: workdir
mountPath: /data

Then start the pod:

oc create -f tests/test-devnull-pod.yml

Connect with the Shell:

oc rsh test-devnull-pod

Debug an Argo workflow#

Pod can also be tested within an Argo workflow, see tests/test-devnull-argo.yml.

argo submit tests/test-devnull-argo.yml
Last updated on by Vincent Emonet