Remove host network
This commit is contained in:
parent
cf79dc228d
commit
3daadc9dc4
1 changed files with 19 additions and 2 deletions
|
@ -167,8 +167,6 @@ spec:
|
||||||
labels:
|
labels:
|
||||||
app: bind-slave
|
app: bind-slave
|
||||||
spec:
|
spec:
|
||||||
hostNetwork: true
|
|
||||||
dnsPolicy: ClusterFirstWithHostNet
|
|
||||||
securityContext:
|
securityContext:
|
||||||
fsGroup: 999
|
fsGroup: 999
|
||||||
containers:
|
containers:
|
||||||
|
@ -238,4 +236,23 @@ spec:
|
||||||
- name: dns-tcp
|
- name: dns-tcp
|
||||||
port: 53
|
port: 53
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: bind9
|
||||||
|
namespace: dns
|
||||||
|
spec:
|
||||||
|
type: LoadBalancer
|
||||||
|
selector:
|
||||||
|
app: bind-slave
|
||||||
|
ports:
|
||||||
|
- name: dns-udp
|
||||||
|
port: 53
|
||||||
|
targetPort: 53
|
||||||
|
protocol: UDP
|
||||||
|
- name: dns-tcp
|
||||||
|
port: 53
|
||||||
|
targetPort: 53
|
||||||
|
protocol: TCP
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue