Skip to content

Latest commit

 

History

History
26 lines (14 loc) · 1.55 KB

README.md

File metadata and controls

26 lines (14 loc) · 1.55 KB

Cluster setup with k3s

.env File

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.

amd64 + arm64 Cluster Installation (One-Time Actions)

k3s Node Setup

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.

Bootstrapping the Cluster

Simply run ./bootstrap-cluster.sh located in this directory to setup the cluster. This does the following things:

  1. Installs flux2
  2. 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.

Cluster Maintenance

Setting up SOPS

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.