Skip to content

Instantly share code, notes, and snippets.

@bigkevmcd
Created October 7, 2021 14:39
Show Gist options
  • Save bigkevmcd/fae68dbdc791fd328cc0c2049b69a51e to your computer and use it in GitHub Desktop.
Save bigkevmcd/fae68dbdc791fd328cc0c2049b69a51e to your computer and use it in GitHub Desktop.
apiVersion: capi.gitops.solutions/v1alpha1
kind: ClusterBootstrapConfig
metadata:
name: clusterbootstrapconfig-sample
namespace: default
spec:
clusterSelector:
matchLabels:
weave.works/spike: upa
jobTemplates:
- name: 'run-wego-{{ .ObjectMeta.Name }}'
spec:
containers:
- image: alpine:latest
name: cat-kubeconfig
volumeMounts:
- name: kubeconfig
mountPath: "/etc/wego"
readOnly: true
command: ["cat", "/etc/wego/value"]
restartPolicy: Never
volumes:
- name: kubeconfig
secret:
secretName: '{{ .ObjectMeta.Name }}-kubeconfig'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment