Flux bootstrap for Google Cloud Source
To install Flux on a GKE cluster using a Google Cloud Source repository as the source of truth,
you can use the
flux bootstrap git command.
Required permissionsTo bootstrap Flux, the person running the command must have cluster admin rights for the target Kubernetes cluster. It is also required that the person running the command to have pull and push rights for the Google Cloud Source repository.
Bootstrap over SSH
First create a new repository to hold your Flux install and other Kubernetes resources. Then generate a SSH key and add the SSH public key to your personal SSH keys on Google Cloud.
Run bootstrap using the SSH private key and passphrase:
flux bootstrap git \
You can also pipe the passphrase e.g.
echo key-passphrase | flux bootstrap git.
The SSH private key and the known hosts keys are stored in the cluster as a Kubernetes
flux-system inside the
SSH Key rotationTo rotate the SSH public key, delete the
flux-system secret from the cluster and re-run
the bootstrap command using a new SSH private key.