https://flyte.org logo
#ask-the-community
Title
# ask-the-community
a

Alykhan Tejani

01/24/2024, 3:50 PM
use case is that right now my pods are <some_hash>-dn0-n0-dn0-chief-0 etc. Which makes it hard to identify what job they belong to
k

Ketan (kumare3)

01/24/2024, 3:58 PM
Check the label
a

Alykhan Tejani

01/24/2024, 3:58 PM
not a bad idea 😂
is there a k8s command to get pods with a certain label, probably is I guess
k

Ketan (kumare3)

01/24/2024, 3:58 PM
Labels always will have execution id
Yup kubectl -o I think
a

Alykhan Tejani

01/24/2024, 3:59 PM
can I set labels on the TFJob pods individually?
I've set them on the workflow with a launch plan
k

Ketan (kumare3)

01/24/2024, 3:59 PM
Yup Pass That when you run the execution
They will get passed down
a

Alykhan Tejani

01/24/2024, 3:59 PM
using @task decorator?
ah ok, so its the labels sent to the workflow
so all task pods will have same labels
Im trying to identify a eval job vs a training job
k

Ketan (kumare3)

01/25/2024, 12:41 AM
use different workflows
d

David Espejo (he/him)

01/25/2024, 6:47 PM
is there a k8s command to get pods with a certain label
kubectl get pod -l <your-label> -n <your-namespace>