Files
auricom-home-cluster/kubernetes/apps/default/mailrise/app/helmrelease.yaml
2023-07-10 22:06:49 +02:00

86 lines
1.9 KiB
YAML

---
# yaml-language-server: $schema=https://kubernetes-schemas.devbu.io/helm.toolkit.fluxcd.io/helmrelease_v2beta1.json
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
name: &app mailrise
namespace: default
spec:
interval: 30m
chart:
spec:
chart: app-template
version: 1.5.1
sourceRef:
kind: HelmRepository
name: bjw-s
namespace: flux-system
maxHistory: 2
install:
createNamespace: true
remediation:
retries: 3
upgrade:
cleanupOnFail: true
remediation:
retries: 3
uninstall:
keepHistory: false
values:
controller:
replicas: 1
strategy: RollingUpdate
annotations:
reloader.stakater.com/auto: "true"
image:
repository: docker.io/yoryan/mailrise
tag: 1.3.0
env:
TZ: ${TIMEZONE}
envFrom:
- secretRef:
name: mailrise-secret
service:
main:
type: LoadBalancer
loadBalancerIP: "${CLUSTER_LB_MAILRISE}"
externalTrafficPolicy: Local
ports:
http:
port: 8025
ingress:
main:
enabled: true
ingressClassName: nginx
annotations:
hajimari.io/enable: "false"
hosts:
- host: &host "{{ .Release.Name }}.${SECRET_CLUSTER_DOMAIN}"
paths:
- path: /
pathType: Prefix
tls:
- hosts:
- *host
persistence:
config:
enabled: true
type: configMap
name: mailrise-configmap
subPath: mailrise.conf
mountPath: /etc/mailrise.conf
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