Expose cluster dns

This commit is contained in:
2025-02-04 00:59:14 +01:00
parent e47f89af27
commit e3c908743f
2 changed files with 24 additions and 0 deletions

2
infra/dns/Makefile Normal file
View File

@@ -0,0 +1,2 @@
install:
kubectl apply -f svc.yml

22
infra/dns/svc.yml Normal file
View File

@@ -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