⬆️ mailrise app-template v2

This commit is contained in:
auricom
2023-11-02 18:57:35 +01:00
parent 44385fbab7
commit d0c6367358

View File

@@ -10,7 +10,7 @@ spec:
chart: chart:
spec: spec:
chart: app-template chart: app-template
version: 1.5.1 version: 2.0.3
sourceRef: sourceRef:
kind: HelmRepository kind: HelmRepository
name: bjw-s name: bjw-s
@@ -27,11 +27,22 @@ spec:
uninstall: uninstall:
keepHistory: false keepHistory: false
values: values:
controller: defaultPodOptions:
replicas: 1 topologySpreadConstraints:
- maxSkew: 1
topologyKey: kubernetes.io/hostname
whenUnsatisfiable: DoNotSchedule
labelSelector:
matchLabels:
app.kubernetes.io/name: *app
controllers:
main:
replicas: 2
strategy: RollingUpdate strategy: RollingUpdate
annotations: annotations:
reloader.stakater.com/auto: "true" reloader.stakater.com/auto: "true"
containers:
main:
image: image:
repository: docker.io/yoryan/mailrise repository: docker.io/yoryan/mailrise
tag: 1.4.0 tag: 1.4.0
@@ -40,6 +51,12 @@ spec:
envFrom: envFrom:
- secretRef: - secretRef:
name: mailrise-secret name: mailrise-secret
resources:
requests:
cpu: 10m
memory: 10Mi
limits:
memory: 200Mi
service: service:
main: main:
type: LoadBalancer type: LoadBalancer
@@ -51,14 +68,16 @@ spec:
ingress: ingress:
main: main:
enabled: true enabled: true
ingressClassName: nginx className: nginx
annotations: annotations:
hajimari.io/enable: "false" hajimari.io/enable: "false"
hosts: hosts:
- host: &host "{{ .Release.Name }}.${SECRET_CLUSTER_DOMAIN}" - host: &host "{{ .Release.Name }}.${SECRET_CLUSTER_DOMAIN}"
paths: paths:
- path: / - path: /
pathType: Prefix service:
name: main
port: http
tls: tls:
- hosts: - hosts:
- *host - *host
@@ -67,19 +86,7 @@ spec:
enabled: true enabled: true
type: configMap type: configMap
name: mailrise-configmap name: mailrise-configmap
globalMounts:
- path: /etc/mailrise.conf
subPath: mailrise.conf subPath: mailrise.conf
mountPath: /etc/mailrise.conf
readOnly: true readOnly: true
topologySpreadConstraints:
- maxSkew: 1
topologyKey: kubernetes.io/hostname
whenUnsatisfiable: DoNotSchedule
labelSelector:
matchLabels:
app.kubernetes.io/name: *app
resources:
requests:
cpu: 10m
memory: 10Mi
limits:
memory: 200Mi