Replies: 3 comments 1 reply
-
I searched further and found this might be similar to #10107. |
Beta Was this translation helpful? Give feedback.
-
Unblocked myself by enforcing the v1 pod naming and got the identical pod name with node id in the Workflows status.nodes data.
One example of node in the status.nodes, with the actual pod name as "job-cv21j3rlc3t5ekbdgvf0-416961272":
|
Beta Was this translation helpful? Give feedback.
-
You can get pod name using this function
Yes, the pod_name v1 is a good solution for that |
Beta Was this translation helpful? Give feedback.
-
I am testing some very long task names against Argo Workflows v3.6.4.
Now I saw the Workflow data in the response under the status.nodes like:
None of the above fields matches the actual pod name:
job-cv0n201lsmlnuao3b5jg-t123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-1234567-4185117407
Surely I can try to construct the pod name by name.replace(".", "-").append(random_suffix_extracted_from_node_name).
Yet it is quite hacky and not future-proof for any pod format change from Argo Workflows.
My questions:
1] is there a recommended way to get the pod names for a running workflow?
My client version:
"github.com/argoproj/argo-workflows/v3/pkg/client/clientset/versioned/typed/workflow/v1alpha1"
2] To attack the issue from another angle: while my code is allowed to mutate the workflow spec, are there any approaches to enforce the base name of the the pods when submitting a workflow job? Or in the Argo Workflows deployment, e.g. in some configMap?
I saw another Argo Workflows v3.2 deployment which is included in Kubeflow Pipeline v2, where the job pods are always like "{UUID}-{random_suffix}". I checked their source code in Github and have not yet been able to figure out the trick.
One example of status.nodes from the Workflow data from KFP's Argo Workflows server, with consistent node name and id and pod name:
I searched (GPT, Google, eetc) and spent a lot of time without success in trying with the following elements in the workflow manifest in the spec.templates:
podName, generateName, podSpecPatch, nodeName, metadata.generateName, metadata.name, etc.
Your help is highly appreciated!
Beta Was this translation helpful? Give feedback.
All reactions