Flux¶
Installation¶
brew install fluxcd/tap/flux
Getting Started¶
# ~/.bashrc or ~/.bash_profile
. <(flux completion bash)
Check requirements
flux check --pre
► checking prerequisites
✔ kubectl 1.18.3 >=1.18.0
✔ kubernetes 1.18.2 >=1.16.0
✔ prerequisites checks passed
Run the bootstrap command:
flux bootstrap github \
--owner=$GITHUB_USER \
--repository=home-cluster \
--branch=main \
--path=./cluster \
--personal
Helm¶
values.yaml¶
---
nfs:
path: /home/pi/nas/nfs
server: 192.168.1.192
storageClass:
defaultClass: false
name: managed-nfs-storage
Source¶
flux create source helm repo-name-charts \
--url https://kubernetes-sigs.github.io/nfs-subdir-external-provisioner/ \
--export | tee repo-name-charts.yaml
HelmRelease¶
flux create helmrelease \
chart-name \
--source HelmRepository/repo-name-charts \
--values values.yaml \
--chart chart-name \
--chart-version chart-version \
--target-namespace namespace-name \
--export \
| tee helm-release.yaml