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
|
## 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 —
|
Same repo, same token, same target path as the full guide would use —
|
||||||
nothing about this is cluster-specific:
|
nothing about this is cluster-specific:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
|
flux check --pre --kubeconfig ~/.kube/config-manual
|
||||||
|
|
||||||
flux bootstrap git \
|
flux bootstrap git \
|
||||||
--url=https://git.boglabob.com/codegit/cloud-demo \
|
--url=https://git.boglabob.com/codegit/cloud-demo \
|
||||||
--branch=main \
|
--branch=main \
|
||||||
|
|
|
||||||
|
|
@ -189,8 +189,18 @@ Forgejo isn't a Flux-native provider (unlike GitHub/GitLab), so use the
|
||||||
generic git bootstrap — over HTTPS with the `flux-write` token from step 4,
|
generic git bootstrap — over HTTPS with the `flux-write` token from step 4,
|
||||||
not SSH (same reachability reasoning as step 5):
|
not SSH (same reachability reasoning as step 5):
|
||||||
|
|
||||||
|
Install the Flux CLI the same no-sudo, no-package-manager way as `kubectl`
|
||||||
|
(`brew` assumes Homebrew, which isn't a given on a bare Debian box):
|
||||||
|
|
||||||
|
```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
|
||||||
|
```
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
brew install fluxcd/tap/flux
|
|
||||||
flux check --pre --kubeconfig ~/.kube/config-homelab
|
flux check --pre --kubeconfig ~/.kube/config-homelab
|
||||||
|
|
||||||
flux bootstrap git \
|
flux bootstrap git \
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue