Deploy Gitea via Helm with dedicated CloudNativePG database, in-cluster Actions runner (DinD), and built-in container registry. ArgoCD repoURLs updated to use in-cluster Gitea SSH. Preview ApplicationSet switched from GitHub PR generator to Gitea PR generator. App images now pull from gitea.coreworlds.io registry. Remaining setup after deploy: seal runner token, ArgoCD API token, and registry pull secret once Gitea is running. Add ArgoCD deploy key to Gitea repo settings.
31 lines
802 B
YAML
31 lines
802 B
YAML
apiVersion: argoproj.io/v1alpha1
|
|
kind: ApplicationSet
|
|
metadata:
|
|
name: apps-production
|
|
namespace: argocd
|
|
spec:
|
|
goTemplate: true
|
|
goTemplateOptions: ["missingkey=error"]
|
|
generators:
|
|
- git:
|
|
repoURL: ssh://git@gitea-ssh.platform.svc:2222/julia/homelab.git
|
|
revision: main
|
|
directories:
|
|
- path: apps/*/k8s/overlays/production
|
|
template:
|
|
metadata:
|
|
name: "{{ index .path.segments 1 }}-production"
|
|
spec:
|
|
project: default
|
|
source:
|
|
repoURL: ssh://git@gitea-ssh.platform.svc:2222/julia/homelab.git
|
|
targetRevision: main
|
|
path: "{{ .path.path }}"
|
|
destination:
|
|
server: https://kubernetes.default.svc
|
|
namespace: apps
|
|
syncPolicy:
|
|
automated:
|
|
prune: true
|
|
selfHeal: true
|