<p>I am new to Kubernetes and AWS and I have a problem. I am trying to run parallel Kubernetes jobs on an EKS cluster. How can I get the environment variable JOB_COMPLETION_INDEX?
I have tested my Java code before with Minikube &quot;locally&quot;, there everything works fine. But when I switch to the EKS cluster, System.getenv(&quot;JOB_COMPLETION_INDEX&quot;) = null. What am I missing? What am I doing wrong?</p>
<p>I used EKS version 1.21.2.</p>
<pre><code>apiVersion: batch/v1
kind: Job
metadata:
  name: calculator
  labels:
    jobgroup: calculator
spec:
  parallelism: 2
  completions: 4
  completionMode: Indexed
  template:
    metadata:
      name: calculator
    spec:
      containers:
        - name: calculater
          image: fbaensch/calculator_test:latest
          imagePullPolicy: Always
      restartPolicy: Never
</code></pre>

fbaensch
<p>This is a v1.22 beta feature which currently not available on EKS v1.21.x.</p>
