I'm trying to run docker image on multiple data using indexed jobs.
It seems that indexed jobs is available since Kubernetes 1.21,
but my job on google kubernetes engine doesn't recognize the variable $JOB_COMPLETION_INDEX.
my yaml file looks like this:
spec:
containers:
- args:
- --job_id="$JOB_COMPLETION_INDEX"
If I set job_id=0, it works ok.
Even if I add the following in the top level spec,
spec:
completions: 3
parallelism: 3
completionMode: Indexed
yaml file automatically remove the part (I'm using google cloud web console for editing yaml file).
I tried both 1.22.3-gke.700 and 1.21.5-gke.1302 with Kubernetes alpha features, but nothing worked.
Is indexed job available now in google kubernetes engine?