apiVersion: apps/v1 kind: Deployment metadata: name: front namespace: {{ .namespace }} spec: replicas: 1 selector: matchLabels: component: front template: metadata: labels: component: front spec: containers: - name: front image: {{ .images.front }} imagePullPolicy: IfNotPresent securityContext: capabilities: add: - SYS_CHROOT - CHOWN - SETGID - SETUID - NET_BIND_SERVICE env: - name: SECRET_KEY valueFrom: secretKeyRef: name: mailu-secrets key: secretKey envFrom: - configMapRef: name: mailu-config ports: - name: http containerPort: 80 - name: https containerPort: 443 - name: smtp containerPort: 25 - name: smtps containerPort: 465 - name: submission containerPort: 587 - name: imap containerPort: 143 - name: imaps containerPort: 993 - name: pop3 containerPort: 110 - name: pop3s containerPort: 995 volumeMounts: - name: certs mountPath: /certs resources: requests: memory: "256Mi" cpu: "100m" limits: memory: "512Mi" cpu: "500m" volumes: - name: certs secret: secretName: {{ .tlsSecretName }} optional: true