commit 7cf6337605925f9e99a7e9533b4299b593e8206e
parent 3313cee9368cb2b65b15b535daeb80a87b409f81
Author: MTRNord <mtrnord1@gmail.com>
Date: Thu, 21 Jul 2022 15:14:05 +0200
Add other ports to service and deployment
Diffstat:
3 files changed, 34 insertions(+), 6 deletions(-)
diff --git a/templates/deployment.yaml b/templates/deployment.yaml
@@ -31,6 +31,14 @@ spec:
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
ports:
+ - name: imap
+ containerPort: 143
+ - name: imap-encrypted
+ containerPort: 993
+ - name: smtp
+ containerPort: 25
+ - name: smtp-encrypted
+ containerPort: 465
- name: http
containerPort: 80
protocol: TCP
diff --git a/templates/service.yaml b/templates/service.yaml
@@ -7,9 +7,21 @@ metadata:
spec:
type: {{ .Values.service.type }}
ports:
- - port: {{ .Values.service.port }}
+ - port: {{ .Values.service.httpPort }}
targetPort: http
protocol: TCP
name: http
+ - port: {{ .Values.service.smtpPort }}
+ targetPort: smtp
+ name: smtp
+ - port: {{ .Values.service.smtpEncryptedPort }}
+ targetPort: smtp-encrypted
+ name: smtp-encrypted
+ - port: {{ .Values.service.imapPort }}
+ targetPort: imap
+ name: imap
+ - port: {{ .Values.service.imapEncryptedPort }}
+ targetPort: imap-encrypted
+ name: imap-encrypted
selector:
{{- include "erooster.selectorLabels" . | nindent 4 }}
diff --git a/values.yaml b/values.yaml
@@ -16,10 +16,12 @@ fullnameOverride: ""
podAnnotations: {}
-podSecurityContext: {}
+podSecurityContext:
+ {}
# fsGroup: 2000
-securityContext: {}
+securityContext:
+ {}
# capabilities:
# drop:
# - ALL
@@ -29,12 +31,17 @@ securityContext: {}
service:
type: ClusterIP
- port: 80
+ httpPort: 80
+ smtpPort: 80
+ smtpEncryptedPort: 465
+ imapPort: 143
+ imapEncryptedPort: 993
ingress:
enabled: false
className: ""
- annotations: {}
+ annotations:
+ {}
# kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: "true"
hosts:
@@ -47,7 +54,8 @@ ingress:
# hosts:
# - chart-example.local
-resources: {}
+resources:
+ {}
# We usually recommend not to specify default resources and to leave this as a conscious
# choice for the user. This also increases chances charts run on environments with little
# resources, such as Minikube. If you do want to specify resources, uncomment the following