- Copy an existing cluster folder
- Adjust the
pathat<new cluster>/config/cluster-config.yamlto point to theclusters/<new cluster>folder - Adjust the
pathat<new cluster>/config/cluster-apps.yamlto point to theclusters/<new cluster>folder - Adjust the
pathat<new cluster>/config/vars.yamlto point to theclusters/<new cluster>folder - Adjust the
pathat<new cluster>/config/global-vars.yamlto point to theclusters/<new cluster>folder - Create a new Age secret for the cluster
age-keygenand copy its output into<cluster>/vars/sops-age.secret.sops.yaml- Adjust the
clusters/<cluster>/.sops.yaml- set
cluster_age_keyto use the age public key - Adjust other authorized users that need to see/edit secrets
- Call
scripts/rewrap-secrets.shto rewrap the secrets with the new keys
- set
- Update the cluster settings
-
kubectl create ns flux-system -
Create the secret in the cluster:
```shell sops -d clusters/<cluster>/vars/sops-age.secret.sops.yaml|kubectl apply -f - ``` -
kubectl -n flux-system apply -k bootstrap -
kubectl -n flux-system apply -k clusters/<cluster>/config -
Install nmstate