⬆️ 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,19 +27,36 @@ spec:
uninstall: uninstall:
keepHistory: false keepHistory: false
values: values:
controller: defaultPodOptions:
replicas: 1 topologySpreadConstraints:
strategy: RollingUpdate - maxSkew: 1
annotations: topologyKey: kubernetes.io/hostname
reloader.stakater.com/auto: "true" whenUnsatisfiable: DoNotSchedule
image: labelSelector:
repository: docker.io/yoryan/mailrise matchLabels:
tag: 1.4.0 app.kubernetes.io/name: *app
env: controllers:
TZ: ${TIMEZONE} main:
envFrom: replicas: 2
- secretRef: strategy: RollingUpdate
name: mailrise-secret annotations:
reloader.stakater.com/auto: "true"
containers:
main:
image:
repository: docker.io/yoryan/mailrise
tag: 1.4.0
env:
TZ: ${TIMEZONE}
envFrom:
- secretRef:
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
subPath: mailrise.conf globalMounts:
mountPath: /etc/mailrise.conf - path: /etc/mailrise.conf
readOnly: true subPath: mailrise.conf
topologySpreadConstraints: readOnly: true
- maxSkew: 1
topologyKey: kubernetes.io/hostname
whenUnsatisfiable: DoNotSchedule
labelSelector:
matchLabels:
app.kubernetes.io/name: *app
resources:
requests:
cpu: 10m
memory: 10Mi
limits:
memory: 200Mi