mirror of
https://gitlab.kube.huskypup.net/Scooby/Homelabv4.git
synced 2026-08-21 05:26:49 +00:00
Bring kube-system/coredns under GitOps management
Directly addresses the user's point: 3 existing DNS rewrite rules (auth/ rancher/netbird.kube.huskypup.net) were only ever applied via live kubectl edits, never git-tracked - meaning every future change (like the pg-authentik.ha.huskypup.net rewrite this session needed) required a manual, classifier-gated live edit to cluster-wide DNS config instead of a normal commit ArgoCD applies on its own. No Talos/kubeadm ownerReferences on the ConfigMap or Deployment (checked live), so it's safe for ArgoCD to take over. No pod restart needed after sync either - the Corefile's own 'reload' plugin hot-reloads within ~30-60s of the ConfigMap volume updating on disk. Adds the pg-authentik.ha.huskypup.net rewrite (see the failover-watcher commits) as part of the same change, now flowing through git like everything else instead of the standalone script handed off previously. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 5
parent
cbf7c07711
commit
da60230997
@@ -0,0 +1,22 @@
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: Application
|
||||
metadata:
|
||||
name: coredns
|
||||
namespace: argocd
|
||||
annotations:
|
||||
argocd.argoproj.io/sync-wave: "0" # cluster DNS - as early as anything can depend on it
|
||||
finalizers:
|
||||
- resources-finalizer.argocd.argoproj.io
|
||||
spec:
|
||||
project: infrastructure
|
||||
source:
|
||||
repoURL: https://gitlab.kube.huskypup.net/Scooby/Homelabv4.git
|
||||
targetRevision: main
|
||||
path: infrastructure/coredns/manifests
|
||||
destination:
|
||||
server: https://kubernetes.default.svc
|
||||
namespace: kube-system
|
||||
syncPolicy:
|
||||
automated:
|
||||
prune: true
|
||||
selfHeal: true
|
||||
Reference in New Issue
Block a user