Hey all, Can we set custom `labels` for the Kuber...
# dev-metaflow
s
Hey all, Can we set custom
labels
for the Kubernetes pod launch in flow or step definitions?
1
a
Not today, but we can enable those. Can you expand on your use case? Will all pods share the same labels?
s
Yes, some at the flow level and some at the step level.
u
Can you share some details of what these labels are for? Metaflow already adds a few labels and annotations to the pods such as
user
,
step_name
,
flow_name
,etc.
s
@User, thnx for checking, and that works for us. We have written our own admission controller to inject tolerations so were looking for targeting specific labels and realized metaflow already sends a few of the in-built labels.
👍 1
h
We would also be looking to have custom labels + tolerations on a workflow / task level. We have some standards in our k8s infra that we would want our metaflow pods to also respect Would be great if this can be done natively with simple python decorators IMO
3