I use a .env file which is encrypted using git-crypt and is referenced in any script below. I have provided a .env.sample file which should show all the environment variables potentially needed for any of the following to function. If copying this repo, you may want to re-initialize git-crypt and copy the .env.sample
file to .env and over-write default values with your specific ones.
Check out homelab-infrastructure/k3s for information on creating the physical/virtual cluster. Make sure you have kubectl
setup on the machine you run these steps on and that it has access to the cluster. This requires either $KUBECONFIG
being set properly or ~/.kube/config
being populated.
Simply run ./bootstrap-cluster.sh
located in this directory to setup the cluster. This does the following things:
- Installs flux2
- Sets up the know set of CRDs taht need to be there for things to run
This script was originally pulled from billimek/k8s-gitops but may have some modifications based on my needs.
I setup SOPS based on the instructions and examples in the k8s-at-home template cluster. Better documentation here will come with experience and time.