docs: install flux CLI without brew (no-sudo, matches kubectl pattern)
This commit is contained in:
parent
73d9f92a2e
commit
92203f004c
2 changed files with 23 additions and 1 deletions
|
|
@ -187,10 +187,22 @@ kubectl get nodes # expect 1 Ready node
|
|||
|
||||
## 3. Bootstrap Flux against Forgejo
|
||||
|
||||
If you haven't installed the Flux CLI yet (no sudo needed):
|
||||
|
||||
```sh
|
||||
FLUX_VERSION=$(curl -s https://api.github.com/repos/fluxcd/flux2/releases/latest | grep tag_name | cut -d '"' -f4 | sed 's/^v//')
|
||||
curl -L -o /tmp/flux.tar.gz "https://github.com/fluxcd/flux2/releases/download/v${FLUX_VERSION}/flux_${FLUX_VERSION}_linux_amd64.tar.gz"
|
||||
tar -xzf /tmp/flux.tar.gz -C ~/.local/bin flux
|
||||
rm /tmp/flux.tar.gz
|
||||
flux --version
|
||||
```
|
||||
|
||||
Same repo, same token, same target path as the full guide would use —
|
||||
nothing about this is cluster-specific:
|
||||
|
||||
```sh
|
||||
flux check --pre --kubeconfig ~/.kube/config-manual
|
||||
|
||||
flux bootstrap git \
|
||||
--url=https://git.boglabob.com/codegit/cloud-demo \
|
||||
--branch=main \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue