01 · REPOSITORY DESIGN
Separate bootstrap, platform, and environments
Keep the controller bootstrap path small and reviewable. Put shared platform components in a distinct layer, then keep environment-specific namespaces and application overlays in their own paths. A change to the monitoring stack should not silently duplicate the same workload into every environment.
Flux describes monorepo layouts that separate infrastructure and applications so the reconciliation order is explicit. Start from the cluster boundary and add a new layer only when it has a real dependency or ownership boundary. See Flux repository structure patterns.
02 · CONTROLLER CHOICE
Flux CD or Argo CD?
Both continuously reconcile declarative state from Git. Flux uses source and Kustomization resources to connect a source revision to a path. Argo CD represents desired applications with Application resources and can create groups of them with ApplicationSets. Pick one owner for each resource set; two controllers applying the same objects make drift and pruning difficult to reason about.
- Flux references: getting started and Kustomizations.
- Argo CD references: declarative setup and cluster bootstrapping.
These are different operating models, not a universal ranking. Confirm the exact API versions and bootstrap sequence for the release you install.
03 · HOMELAB PLANNING
Treat cluster provisioning as a separate layer
First record what already exists: distribution and release, CPU architectures, network ranges, storage devices, and the cluster context you intend to target. Provisioning a new cluster and reconciling workloads into an existing cluster are separate jobs. A GitOps repository should not reinstall Kubernetes when the target is an existing cluster.
For a homelab, keep a recovery note for controller bootstrap and repository access outside the repository. Test restore and rebuild steps against equipment you can safely reset; a syntactically valid manifest does not prove disk, network, or hardware behavior.
04 · OBSERVABILITY
Connect metrics to a question you need to answer
Prometheus collects numeric time-series data from configured targets. Grafana can query a compatible data source and present those measurements as dashboards. A dashboard is useful only when its data source, exporters, metric names, retention, and persistent storage match the selected stack.
Start with the signals that help you diagnose a real service: availability, latency, saturation, and errors. Add service-monitoring custom resources only after the controller that supplies their CRDs is installed and ready. Read the Prometheus overview before choosing storage or retention values.
05 · SECRETS
Keep credentials out of Git history
Do not commit plaintext passwords, access tokens, kubeconfig files, or private keys. Decide where decryption keys live before adding encrypted values to a repository, and document rotation and recovery separately. An encrypted file does not help if its key is stored beside it with the same access boundary.
Flux supports SOPS decryption as well as other secret-management approaches. Choose a provider and identity model your cluster can actually reach at bootstrap time. Review the Flux secrets-management guidance and its security best practices.
06 · NETWORKING
Choose a network path before adding gateways
The pod network, Kubernetes Services, and external traffic entry points solve different problems. Decide which CNI owns pod connectivity, how service IPs are provided, and whether external HTTP traffic uses Ingress or a Gateway API implementation. Check the distribution's networking constraints before adding a replacement CNI or a second load balancer.
Read the Kubernetes Services, Load Balancing, and Networking overview and confirm API and controller compatibility for the exact versions you plan to run.
07 · DEVELOPER DASHBOARD
Build a Homepage dashboard with least privilege
Homepage reads its own YAML configuration and can discover selected Kubernetes resources when the service account and permissions are configured. A dashboard URL is not an access-control boundary: keep admin services private and put authentication in front of any route that leaves the cluster network.
Its Kubernetes integration documents the required connection modes and supported discovery annotations. Review the official Kubernetes configuration and widget catalog before adding widget types or RBAC.
08 · SECURITY
Audit policy before enforcing it
Begin with namespace boundaries, scoped service accounts, non-root containers, and resource requests that have been checked against the workload. Observe policy findings before enabling enforcement that could prevent a controller or application from starting. Do not add privileged host access without a documented hardware or network requirement.
Kubernetes documents the Pod Security Standards and Pod Security Admission. Verify what your cluster release enforces and keep an operator recovery path.
FORGEKIT GENERATOR STATUS
Review the output before bootstrap
The ForgeKit generator currently creates experimental Flux, Argo CD, and basic Homepage starters. Static checks do not prove cluster deployment, resource sizing, or compatibility with your distribution.