-
Notifications
You must be signed in to change notification settings - Fork 699
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[feature] Does tfJob support setting different label/envVar for each worker(replicas >1)? #340
Comments
You could add labels in the YAML file and I think it should be added into the jobs and services created by the TFJob. If not I think it is a bug. |
I can set same labels to N workers as expected, but I don't know how to set different label for each worker. For example, I have 2 worker, each worker need 2 label (labelA, labelB).
P.S. I think my question is not clearly, so I made some modifications. |
Got it, then it is a new feature. |
You can't add individual labels specific to a replica (e.g. worker 0 vs. worker1). We do however add standard labels corresponding to the replica type and replica index. |
@sdf611097 Does this address your needs? |
Yes. If I still need to set different label or env var for each job, I will send a PR. |
@sdf611097 Thanks. |
In my case, I have some tools which are designed by pod label. How can I set different label for each pod which is created by tfJob? (N workers with different custom labels)
If not, are there any hints or suggestions to do this(Maybe I can make a PR). Such as naming, how to validating(spec.replicaSpecs.replicas equal to replicaLabels size) and so on.
The text was updated successfully, but these errors were encountered: