Skip to content

Instantly share code, notes, and snippets.

@gperezmz
Last active January 24, 2021 04:48
Show Gist options
  • Save gperezmz/0ec7f320036dcddb85ab584c3bf9b1ef to your computer and use it in GitHub Desktop.
Save gperezmz/0ec7f320036dcddb85ab584c3bf9b1ef to your computer and use it in GitHub Desktop.
flux2 bootstrap cluster
kubectl create ns flux-system
$GPG_KEY="<REPLACE VALUE>"
gpg --export-secret-keys --armor $GPG_KEY > sops.asc
kubectl create secret generic sops-gpg --namespace=flux-system --from-file=sops.asc
rm sops.asc
# recover ssh-credentials.yaml
kubectl apply -f ssh-credentials.yaml
flux bootstrap github --version=x.x.x --owner=$env:GITHUB_USER --repository=k8s-gitops --branch=main --path=cluster --private=false --personal=true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment