Skip to content

Instantly share code, notes, and snippets.

@venkatnsrinivasan
Created June 29, 2020 20:13
Show Gist options
  • Save venkatnsrinivasan/0d6091f7c55dc24f13584da0f69a60a5 to your computer and use it in GitHub Desktop.
Save venkatnsrinivasan/0d6091f7c55dc24f13584da0f69a60a5 to your computer and use it in GitHub Desktop.
---
apiVersion: types.kubefed.io/v1beta1
kind: FederatedJob
metadata:
name: cluster-init
spec:
placement:
clusters:
- name: k8s-cluster-us-central-1-gke
template:
metadata:
labels:
app: cockroachdb
spec:
template:
spec:
containers:
- command:
- /cockroach/cockroach
- init
- --insecure
- --host=cockroachdb-0.kubefed-poc.federation.svc.us-central1.kubefed.fulliautomatix.site
image: cockroachdb/cockroach:v20.1.1
imagePullPolicy: IfNotPresent
name: cluster-init
restartPolicy: OnFailure
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment