- Installing the Flux CLI
- Bootstrapping Flux with GitHub
- Verifying in-cluster components
Ensure you have the following set up:
- Docker Desktop with Kubernetes enabled (Docker Desktop Docs)
kubectlconfigured- A GitHub account
- Visual Studio Code (or your preferred editor/terminal)
1. Environment Overview
You should see something like this when you open VS Code in WSL2:
2. Start a Sample Container
First, launch a test container to ensure Docker is running:3. Enable Kubernetes in Docker Desktop
Open Docker Desktop settings, navigate to Kubernetes, and enable it:
4. Install the Flux CLI
Check if Flux is already installed:5. Bootstrap Flux on Kubernetes
Flux usesflux bootstrap to install controllers and generate GitOps manifests. The installation docs list several Git providers:

5.1 Create a GitHub Personal Access Token
- Go to Developer settings → Personal access tokens → Tokens (classic).
- Click Generate new token, select repo scope, and create it:


Store your GitHub token safely. Never commit it to a public repo or share it in plaintext.
5.2 Run flux bootstrap
Export the token and bootstrap Flux to your GitHub repo:
- Flux connects to GitHub and creates (or clones) the repo
- Component manifests install into the
flux-systemnamespace - A deploy key and Kubernetes
Secretare created - Sync manifests are committed to GitHub
- Flux controllers reconcile their configuration

6. Clone and Inspect the Bootstrap Repository
View the GitOps manifests Flux created:
flux-clusters/dev-cluster/flux-system, the gotk-components.yaml contains definitions for the flux-system namespace, CRDs, and controller deployments: