Expose cluster dns
This commit is contained in:
2
infra/dns/Makefile
Normal file
2
infra/dns/Makefile
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
install:
|
||||||
|
kubectl apply -f svc.yml
|
||||||
22
infra/dns/svc.yml
Normal file
22
infra/dns/svc.yml
Normal 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
|
||||||
Reference in New Issue
Block a user