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:
|
||||
app: bind-slave
|
||||
spec:
|
||||
hostNetwork: true
|
||||
dnsPolicy: ClusterFirstWithHostNet
|
||||
securityContext:
|
||||
fsGroup: 999
|
||||
containers:
|
||||
|
@ -238,4 +236,23 @@ spec:
|
|||
- name: dns-tcp
|
||||
port: 53
|
||||
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