From e3c908743f8a9bcd71ad77ec887c896b07b7d423 Mon Sep 17 00:00:00 2001 From: Lumpiasty Date: Tue, 4 Feb 2025 00:59:14 +0100 Subject: [PATCH] Expose cluster dns --- infra/dns/Makefile | 2 ++ infra/dns/svc.yml | 22 ++++++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 infra/dns/Makefile create mode 100644 infra/dns/svc.yml diff --git a/infra/dns/Makefile b/infra/dns/Makefile new file mode 100644 index 0000000..f79eb57 --- /dev/null +++ b/infra/dns/Makefile @@ -0,0 +1,2 @@ +install: + kubectl apply -f svc.yml \ No newline at end of file diff --git a/infra/dns/svc.yml b/infra/dns/svc.yml new file mode 100644 index 0000000..a2d8ebc --- /dev/null +++ b/infra/dns/svc.yml @@ -0,0 +1,22 @@ +apiVersion: v1 +kind: Service +metadata: + namespace: kube-system + name: kube-dns-external +spec: + type: LoadBalancer + externalTrafficPolicy: Local + ipFamilyPolicy: SingleStack + ipFamilies: + - IPv6 + selector: + k8s-app: kube-dns + ports: + - name: dns + port: 53 + targetPort: 53 + protocol: UDP + - name: dns-tcp + port: 53 + targetPort: 53 + protocol: TCP