Flux v2 config for CFT AKS clusters
Please see Repo setup for details on how this repo is organized and meant to work.
- All App deployments are managed through
HelmRelease
manifests. - Any new/existing application that is getting added to an environment for the first time should use Flux v2.
- See App Deployment section for more details to manage existing apps already on flux v1.
Install version 0.5.1 from https://github.com/bitnami-labs/sealed-secrets/releases
kubectl create secret generic my-secret \
--from-literal key=secret-value \
--namespace namespace \
--dry-run=client -o json > my-secret.json
kubeseal --format=yaml --cert=pub-cert.pem < my-secret.json > my-secret.yaml
kubectl create secret generic my-secret \
--from-file=./some-file.txt \
--namespace namespace \
--dry-run=client -o json > my-secret.json
kubeseal --format=yaml --cert=pub-cert.pem < my-secret.json > my-secret.yaml
See new cluster creation steps.
Update flux
cli in your local and run
flux install --export > apps/flux-system/base/gotk-components.yaml
flux install --export --components image-reflector-controller,image-automation-controller > apps/flux-system/base/image-automation-components.yaml
Currently, image-automation-components.yaml
will contain some duplication like namespace
and clusterrole
and they need to be removed manually