master to internal service, slave to hold nodes port 53
This commit is contained in:
parent
a5516c4698
commit
690285bc2f
1 changed files with 19 additions and 0 deletions
|
@ -137,6 +137,8 @@ spec:
|
|||
labels:
|
||||
app: bind-slave
|
||||
spec:
|
||||
hostNetwork: true
|
||||
dnsPolicy: ClusterFirstWithHostNet
|
||||
containers:
|
||||
- name: bind9
|
||||
image: internetsystemsconsortium/bind9:9.18
|
||||
|
@ -179,3 +181,20 @@ spec:
|
|||
targetPort: 53
|
||||
protocol: TCP
|
||||
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: bind-master
|
||||
namespace: dns
|
||||
spec:
|
||||
type: ClusterIP
|
||||
selector:
|
||||
app: bind-master
|
||||
ports:
|
||||
- name: dns-udp
|
||||
port: 53
|
||||
protocol: UDP
|
||||
- name: dns-tcp
|
||||
port: 53
|
||||
protocol: TCP
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue