From 1d8c0c1421919f0b3934394618fbe30e0b651a98 Mon Sep 17 00:00:00 2001 From: "AB from home.homenet" Date: Mon, 27 Oct 2025 11:03:49 +0200 Subject: [PATCH] Added custom coredns resolve config --- k8s/core/kube-system-custom/app.yaml | 18 +++++++++++++ .../coredns-internal-resolve.yaml | 25 +++++++++++++++++++ .../kube-system-custom/kustomization.yaml | 7 ++++++ 3 files changed, 50 insertions(+) create mode 100644 k8s/core/kube-system-custom/app.yaml create mode 100644 k8s/core/kube-system-custom/coredns-internal-resolve.yaml create mode 100644 k8s/core/kube-system-custom/kustomization.yaml diff --git a/k8s/core/kube-system-custom/app.yaml b/k8s/core/kube-system-custom/app.yaml new file mode 100644 index 0000000..68270ad --- /dev/null +++ b/k8s/core/kube-system-custom/app.yaml @@ -0,0 +1,18 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: kube-system-custom + namespace: argocd +spec: + project: core + destination: + namespace: kube-system + server: https://kubernetes.default.svc + source: + repoURL: ssh://git@gt.hexor.cy:30022/ab/homelab.git + targetRevision: HEAD + path: k8s/core/kube-system-custom + syncPolicy: + syncOptions: + - CreateNamespace=false + diff --git a/k8s/core/kube-system-custom/coredns-internal-resolve.yaml b/k8s/core/kube-system-custom/coredns-internal-resolve.yaml new file mode 100644 index 0000000..7ddb18b --- /dev/null +++ b/k8s/core/kube-system-custom/coredns-internal-resolve.yaml @@ -0,0 +1,25 @@ +apiVersion: v1 +kind: ConfigMap +metadata: + annotations: + name: coredns-custom + namespace: kube-system +data: + homenet.server: | + homenet:53 { + errors + cache 30 + forward . 10.0.5.1 + } + khv.server: | + khv:53 { + errors + cache 30 + forward . 10.0.5.1 + } + tailscale.server: | + tail2fe2d.ts.net:53 { + errors + cache 30 + forward . 100.100.100.100 + } diff --git a/k8s/core/kube-system-custom/kustomization.yaml b/k8s/core/kube-system-custom/kustomization.yaml new file mode 100644 index 0000000..ecefe24 --- /dev/null +++ b/k8s/core/kube-system-custom/kustomization.yaml @@ -0,0 +1,7 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization + +resources: + - app.yaml + - coredns-internal-resolve.yaml +