This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: batch/v1 | |
kind: Job | |
metadata: | |
name: 2025-07-02-1-indexed-job-example | |
spec: | |
completions: 2 | |
parallelism: 2 | |
backoffLimit: 0 | |
completionMode: Indexed | |
template: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: jobset.x-k8s.io/v1alpha2 | |
kind: JobSet | |
metadata: | |
name: sample | |
annotations: | |
alpha.jobset.sigs.k8s.io/exclusive-topology: cloud.google.com/gke-nodepool # 1:1 map between jobs and GKE node pools | |
alpha.jobset.sigs.k8s.io/inplace-timeout: "60s" # Activate in place restart feature. In place timeout before failing over to recreating all pods | |
# alpha.jobset.sigs.k8s.io/inplace-restarts: 0 # This is added by the orchestrator and is compared to maxRestarts by the JobSet controller | |
spec: | |
failurePolicy: |