Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Latest commit

 

History

History

kubernetes

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Flux

Flux is the core driver to deploying applications to the Kubernetes clusters. Once deployed, it constantly watches the appropriate directory for changes based on the YAML manifests.

📂 Directory structure

This directory contains the following directories under flux and are ordered below by how Flux will apply them.

./flux
├── ./clusters       # entrypoint to Flux
├── ./core           # core cluster configuration, loaded before `crds`
├── ./crds           # custom resource definitions (CRDs), loaded before `infrastructure`
├── ./infrastructure # key infrastructure applications, loaded before `apps`
└── ./apps           # common applications, loaded last

There are two types of configuration in the clusters directory, "home" and "development". The home configuration is applied to the Mac minis and is treated as the "production" environment. The development configuration is applied to a Kind cluster to test out configuration changes, updates, etc.

🔩 Bootstrap Mac mini cluster

flux bootstrap github \
  --owner=jacobmammoliti \
  --repository=homelab \
  --branch=main \
  --path=./kubernetes/flux/clusters/home \
  --personal

🔩 Bootstrap Development Cluster

flux bootstrap github \
  --owner=jacobmammoliti \
  --repository=homelab \
  --branch=main \
  --path=./kubernetes/flux/clusters/development \
  --personal