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 +