[feature] Does tfJob support setting different label/envVar for each worker(replicas >1)? #340
Closed
Description
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)
- replicas: 2
tfReplicaType: WORKER
template:
spec:
containers:
- image: gcr.io/tf-on-k8s-dogfood/tf_sample:dc944ff
name: tensorflow
restartPolicy: OnFailure
#replicaLabels:
#- labelA: valueA-0
# labelB: valueB-0
#- labelA: valueA-1
# labelB: valueB-1
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.