mirror of
https://github.com/auricom/home-cluster.git
synced 2025-09-17 18:24:14 +02:00
95 lines
2.4 KiB
YAML
95 lines
2.4 KiB
YAML
---
|
|
# yaml-language-server: $schema=https://raw.githubusercontent.com/bjw-s/helm-charts/main/charts/other/app-template/schemas/helmrelease-helm-v2.schema.json
|
|
apiVersion: helm.toolkit.fluxcd.io/v2
|
|
kind: HelmRelease
|
|
metadata:
|
|
name: &app mailrise
|
|
namespace: monitoring
|
|
spec:
|
|
interval: 30m
|
|
chart:
|
|
spec:
|
|
chart: app-template
|
|
version: 3.5.1
|
|
sourceRef:
|
|
kind: HelmRepository
|
|
name: bjw-s
|
|
namespace: flux-system
|
|
maxHistory: 2
|
|
install:
|
|
createNamespace: true
|
|
remediation:
|
|
retries: 3
|
|
upgrade:
|
|
cleanupOnFail: true
|
|
remediation:
|
|
strategy: rollback
|
|
retries: 3
|
|
uninstall:
|
|
keepHistory: false
|
|
values:
|
|
defaultPodOptions:
|
|
topologySpreadConstraints:
|
|
- maxSkew: 1
|
|
topologyKey: kubernetes.io/hostname
|
|
whenUnsatisfiable: DoNotSchedule
|
|
labelSelector:
|
|
matchLabels:
|
|
app.kubernetes.io/name: *app
|
|
controllers:
|
|
mailrise:
|
|
replicas: 2
|
|
strategy: RollingUpdate
|
|
annotations:
|
|
reloader.stakater.com/auto: "true"
|
|
containers:
|
|
app:
|
|
image:
|
|
repository: docker.io/yoryan/mailrise
|
|
tag: 1.4.0@sha256:66082168090b9a83f01cc71a9d7b1994840adbbbffbe4d2cf644272fbbc23a1a
|
|
env:
|
|
TZ: ${TIMEZONE}
|
|
envFrom:
|
|
- secretRef:
|
|
name: mailrise-secret
|
|
resources:
|
|
requests:
|
|
cpu: 10m
|
|
memory: 10Mi
|
|
limits:
|
|
memory: 200Mi
|
|
service:
|
|
app:
|
|
controller: *app
|
|
type: LoadBalancer
|
|
loadBalancerIP: 192.168.169.112
|
|
externalTrafficPolicy: Local
|
|
ports:
|
|
http:
|
|
port: 8025
|
|
ingress:
|
|
app:
|
|
enabled: true
|
|
className: nginx
|
|
annotations:
|
|
hajimari.io/enable: "false"
|
|
hosts:
|
|
- host: &host "{{ .Release.Name }}.${SECRET_EXTERNAL_DOMAIN}"
|
|
paths:
|
|
- path: /
|
|
service:
|
|
identifier: app
|
|
port: http
|
|
tls:
|
|
- hosts:
|
|
- *host
|
|
persistence:
|
|
config:
|
|
enabled: true
|
|
type: configMap
|
|
name: mailrise-configmap
|
|
globalMounts:
|
|
- path: /etc/mailrise.conf
|
|
subPath: mailrise.conf
|
|
readOnly: true
|