Skip to content

spuxx1701/flux

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

Flux

This repository houses the cluster configuration for my Kubernetes cluster.

Bootstrap Flux

The repository is maintained with Flux. In case of a new fresh install of the cluster, Flux needs to be bootstrapped.

flux bootstrap github \
  --owner=spuxx1701 \
  --repository=flux \
  --branch=master \
  --token-auth \
  --path=./cluster \
  --components-extra=image-automation-controller,image-reflector-controller

When prompted, enter the PAT that Flux can use to access this repository.

For everything to work, secret decryption must also be enabled. Download the age keyfile and then do:

cat age.agekey |
kubectl create secret generic sops-age \
--namespace=flux-system \
--from-file=age.agekey=/dev/stdin

Setting up observability

You can enable the observability stack (grafana, prometheus, loki etc.) via:

microk8s enable observability

Setting up persistent storage

Option 1: Hostpath storage

Microk8s offers an addon to easily implement persistent storage via a directory on the host sytem. The guide can be found here.

microk8s enable hostpath-storage

We usually use UID 9999 for container runtimes that do not require access to storage on the host. For containers that do, we create new users that have their own home folders. The following users are reserved by existing applications:

9001 - mariadb
9002 - monitoring
9003 - audiobookshelf
9004 - actualbudget

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published