From fab400c15c87cce2b8134ea54601ebb6493074ad Mon Sep 17 00:00:00 2001 From: Ben Vincent Date: Fri, 3 Jul 2026 19:54:32 +1000 Subject: [PATCH] Deploy binddns-resolver BIND cluster Adds the recursive resolvers (3 identical recursive servers with forwarders). Stacked on the bind-operator deploy so the CRDs and kubeconform schemas are present; merge the operator PR first. - add apps/base/binddns-resolver and its au-syd1 overlay --- apps/base/binddns-resolver/cluster.yaml | 28 +++++++++++++++++++ apps/base/binddns-resolver/kustomization.yaml | 7 +++++ apps/base/binddns-resolver/namespace.yaml | 5 ++++ .../binddns-resolver/kustomization.yaml | 6 ++++ 4 files changed, 46 insertions(+) create mode 100644 apps/base/binddns-resolver/cluster.yaml create mode 100644 apps/base/binddns-resolver/kustomization.yaml create mode 100644 apps/base/binddns-resolver/namespace.yaml create mode 100644 apps/overlays/au-syd1/binddns-resolver/kustomization.yaml diff --git a/apps/base/binddns-resolver/cluster.yaml b/apps/base/binddns-resolver/cluster.yaml new file mode 100644 index 0000000..a0cb345 --- /dev/null +++ b/apps/base/binddns-resolver/cluster.yaml @@ -0,0 +1,28 @@ +--- +# Recursive resolvers (replaces the 3x Puppet only-resolver servers). +# Three identical recursive servers; no zone replication. +apiVersion: bind.unkin.net/v1alpha1 +kind: BindCluster +metadata: + name: resolver + namespace: binddns-resolver +spec: + mode: resolver + replicas: 3 + storageClassName: cephrbd-fast-delete + storageSize: 1Gi + service: + type: LoadBalancer + annotations: + purelb.io/service-group: common + external-dns.alpha.kubernetes.io/hostname: resolver.k8s.syd1.au.unkin.net + forwarders: + - 1.1.1.1 + - 9.9.9.9 + resources: + requests: + cpu: 100m + memory: 128Mi + limits: + cpu: "1" + memory: 512Mi diff --git a/apps/base/binddns-resolver/kustomization.yaml b/apps/base/binddns-resolver/kustomization.yaml new file mode 100644 index 0000000..4bb26c2 --- /dev/null +++ b/apps/base/binddns-resolver/kustomization.yaml @@ -0,0 +1,7 @@ +--- +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization + +resources: + - namespace.yaml + - cluster.yaml diff --git a/apps/base/binddns-resolver/namespace.yaml b/apps/base/binddns-resolver/namespace.yaml new file mode 100644 index 0000000..d10b502 --- /dev/null +++ b/apps/base/binddns-resolver/namespace.yaml @@ -0,0 +1,5 @@ +--- +apiVersion: v1 +kind: Namespace +metadata: + name: binddns-resolver diff --git a/apps/overlays/au-syd1/binddns-resolver/kustomization.yaml b/apps/overlays/au-syd1/binddns-resolver/kustomization.yaml new file mode 100644 index 0000000..d57c83d --- /dev/null +++ b/apps/overlays/au-syd1/binddns-resolver/kustomization.yaml @@ -0,0 +1,6 @@ +--- +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization + +resources: + - ../../../base/binddns-resolver