From 44837fc0075c9ae557791f60e21f3fe6c4455b5f Mon Sep 17 00:00:00 2001 From: Michael Wyraz Date: Mon, 30 Sep 2019 19:58:26 +0200 Subject: [PATCH] Switch from host network to hostPort bindings --- docs/kubernetes/mailu/front.yaml | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/docs/kubernetes/mailu/front.yaml b/docs/kubernetes/mailu/front.yaml index 9951f30c..f3c41f37 100644 --- a/docs/kubernetes/mailu/front.yaml +++ b/docs/kubernetes/mailu/front.yaml @@ -27,7 +27,6 @@ spec: - matchExpressions: - key: node-role.kubernetes.io/node operator: Exists - hostNetwork: true nodeSelector: node-role.kubernetes.io/node: "" dnsPolicy: ClusterFirstWithHostNet @@ -46,31 +45,39 @@ spec: ports: - name: pop3 containerPort: 110 + hostPort: 110 protocol: TCP - name: pop3s containerPort: 995 + hostPort: 995 protocol: TCP - name: imap containerPort: 143 + hostPort: 143 protocol: TCP - name: imaps containerPort: 993 + hostPort: 993 protocol: TCP - name: smtp containerPort: 25 + hostPort: 25 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 containerPort: 10025 protocol: TCP - name: imap-auth containerPort: 10143 protocol: TCP - - name: smtps - containerPort: 465 - protocol: TCP - - name: smtpd - containerPort: 587 - protocol: TCP - name: auth containerPort: 8000 protocol: TCP