Switch from host network to hostPort bindings

master
Michael Wyraz 5 years ago
parent 92645bcd4a
commit 44837fc007

@ -27,7 +27,6 @@ spec:
- matchExpressions: - matchExpressions:
- key: node-role.kubernetes.io/node - key: node-role.kubernetes.io/node
operator: Exists operator: Exists
hostNetwork: true
nodeSelector: nodeSelector:
node-role.kubernetes.io/node: "" node-role.kubernetes.io/node: ""
dnsPolicy: ClusterFirstWithHostNet dnsPolicy: ClusterFirstWithHostNet
@ -46,31 +45,39 @@ spec:
ports: ports:
- name: pop3 - name: pop3
containerPort: 110 containerPort: 110
hostPort: 110
protocol: TCP protocol: TCP
- name: pop3s - name: pop3s
containerPort: 995 containerPort: 995
hostPort: 995
protocol: TCP protocol: TCP
- name: imap - name: imap
containerPort: 143 containerPort: 143
hostPort: 143
protocol: TCP protocol: TCP
- name: imaps - name: imaps
containerPort: 993 containerPort: 993
hostPort: 993
protocol: TCP protocol: TCP
- name: smtp - name: smtp
containerPort: 25 containerPort: 25
hostPort: 25
protocol: TCP protocol: TCP
- name: smtps
containerPort: 465
hostPort: 465
protocol: TCP
- name: smtpd
containerPort: 587
hostPort: 587
protocol: TCP
# internal services (not exposed externally)
- name: smtp-auth - name: smtp-auth
containerPort: 10025 containerPort: 10025
protocol: TCP protocol: TCP
- name: imap-auth - name: imap-auth
containerPort: 10143 containerPort: 10143
protocol: TCP protocol: TCP
- name: smtps
containerPort: 465
protocol: TCP
- name: smtpd
containerPort: 587
protocol: TCP
- name: auth - name: auth
containerPort: 8000 containerPort: 8000
protocol: TCP protocol: TCP

Loading…
Cancel
Save