Hi Batch WG!
I've recently been exposing services, everything from a little API running inside one of the indices of my job, to an actual Kubernetes cluster API, and in both these cases I've had to manually label the index 0 pod of my indexed job. The
docs say that we should see
batch.kubernetes.io/X labels, but I see "
app.kubernetes.io/name=flux-sample." I noticed that we do have an
annotation that corresponds to the index with this format:
Annotations:
batch.kubernetes.io/job-completion-index: 0
But for labels I only see my custom labels, along with the app one mentioned above that has the job name:
I think I'd like to see an equivalent label for the job completion index for use as a selector, unless there is some way to take advantage of the annotation that I'm not aware of.
Has anyone else wanted or needed this use case?
Happy Friday!
Best,
Vanessa