17 lines
925 B
Markdown
17 lines
925 B
Markdown
# GitOps scaffold for Rancher-managed Kubernetes
|
|
#
|
|
# Flow: Developers/CI -> Forgejo -> Argo CD -> Rancher-managed clusters.
|
|
# Kubernetes itself is NOT the backup. This repo (in Forgejo, backed up
|
|
# by /root/forgejo/backup.sh) plus container images are the source of truth.
|
|
#
|
|
# Layout:
|
|
# bootstrap/ one-time Argo CD install + root App-of-Apps
|
|
# apps/ one Argo CD Application per workload
|
|
# clusters/ per-cluster config (registered Rancher clusters)
|
|
#
|
|
# Usage on a NEW cluster:
|
|
# 1. kubectl apply -f bootstrap/argocd-namespace.yaml
|
|
# 2. kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml
|
|
# 3. kubectl apply -f bootstrap/repo-forgejo.yaml # registers THIS Forgejo repo
|
|
# 4. kubectl apply -f bootstrap/root-app.yaml # app-of-apps -> redeploys everything
|
|
# 5. (Rancher) cluster auto-registers; workloads converge from Git.
|