--- # yaml-language-server: $schema=https://kubernetes-schemas.devbu.io/helmrelease_v2beta1.json apiVersion: helm.toolkit.fluxcd.io/v2beta1 kind: HelmRelease metadata: name: &app mailrise namespace: default spec: interval: 15m chart: spec: chart: app-template version: 1.4.0 sourceRef: kind: HelmRepository name: bjw-s namespace: flux-system maxHistory: 3 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: *app 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 podAnnotations: secret.reloader.stakater.com/reload: *app resources: requests: cpu: 10m memory: 10Mi limits: memory: 200Mi