--- apiVersion: helm.toolkit.fluxcd.io/v2beta1 kind: HelmRelease metadata: name: &app smtp-relay namespace: default spec: interval: 15m chart: spec: chart: app-template version: 1.1.3 sourceRef: kind: HelmRepository name: bjw-s namespace: flux-system install: createNamespace: true remediation: retries: 5 upgrade: remediation: retries: 5 values: controller: replicas: 1 strategy: RollingUpdate image: repository: ghcr.io/foxcpp/maddy tag: 0.6.2 env: DEBUG: "true" SMTP_DOMAIN: "${SECRET_DOMAIN}" SMTP_SERVER: "smtp.fastmail.com" SMTP_USERNAME: "${SECRET_EMAIL_SMTP_USERNAME}" SMTP_PORT: "465" envFrom: - secretRef: name: *app service: main: type: LoadBalancer loadBalancerIP: "${CLUSTER_LB_SMTP_RELAY}" externalTrafficPolicy: Local ports: http: port: 2525 metrics: enabled: true port: 9749 serviceMonitor: main: enabled: true endpoints: - port: metrics scheme: http path: /metrics interval: 1m scrapeTimeout: 10s persistence: config: enabled: true type: configMap name: *app subPath: maddy.conf mountPath: /data/maddy.conf readOnly: true data: enabled: true type: emptyDir medium: Memory sizeLimit: 1Gi mountPath: /dev/shm podAnnotations: configmap.reloader.stakater.com/reload: *app secret.reloader.stakater.com/reload: *app topologySpreadConstraints: - maxSkew: 1 topologyKey: kubernetes.io/hostname whenUnsatisfiable: DoNotSchedule labelSelector: matchLabels: app.kubernetes.io/name: *app resources: requests: cpu: 10m memory: 10Mi limits: memory: 50Mi