--- # yaml-language-server: $schema=https://raw.githubusercontent.com/bjw-s/helm-charts/main/charts/other/app-template/schemas/helmrelease-helm-v2beta2.schema.json apiVersion: helm.toolkit.fluxcd.io/v2beta2 kind: HelmRelease metadata: name: &app gatus namespace: monitoring spec: interval: 30m chart: spec: chart: app-template version: 3.1.0 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: controllers: gatus: annotations: reloader.stakater.com/auto: "true" initContainers: 01-init-db: image: repository: ghcr.io/onedr0p/postgres-init tag: 16 pullPolicy: IfNotPresent envFrom: &envFrom - secretRef: name: gatus-secret 02-init-config: image: &configSyncImage repository: ghcr.io/kiwigrid/k8s-sidecar tag: 1.26.1@sha256:b8d5067137fec093cf48670dc3a1dbb38f9e734f3a6683015c2e89a45db5fd16 env: FOLDER: /config LABEL: gatus.io/enabled NAMESPACE: ALL RESOURCE: both UNIQUE_FILENAMES: true METHOD: LIST resources: &configSyncResources requests: cpu: 10m memory: 10Mi limits: memory: 128Mi containers: app: image: repository: ghcr.io/twin/gatus tag: v5.10.0@sha256:658a9cb993ff0b16832947dab8de885b2e2a66037330b839310fa3f39d5c00f4 env: TZ: ${TIMEZONE} GATUS_CONFIG_PATH: /config CUSTOM_WEB_PORT: &port 8080 SECRET_CLUSTER_DOMAIN: ${SECRET_CLUSTER_DOMAIN} envFrom: *envFrom resources: requests: cpu: 10m memory: 256M limits: memory: 512M config-sync: image: *configSyncImage env: FOLDER: /config LABEL: gatus.io/enabled NAMESPACE: ALL RESOURCE: both UNIQUE_FILENAMES: true METHOD: WATCH envFrom: *envFrom resources: *configSyncResources service: app: controller: *app ports: http: port: *port serviceMonitor: app: serviceName: *app endpoints: - port: http scheme: http path: /metrics interval: 1m scrapeTimeout: 10s ingress: app: enabled: true className: nginx annotations: external-dns.alpha.kubernetes.io/enabled: "true" external-dns.alpha.kubernetes.io/target: services.${SECRET_DOMAIN}. hajimari.io/icon: mdi:list-status hosts: - host: &host "status.${SECRET_CLUSTER_DOMAIN}" paths: - path: / service: identifier: app port: http tls: - hosts: - *host serviceAccount: create: true name: *app persistence: config: enabled: true type: emptyDir config-file: type: configMap name: gatus-configmap globalMounts: - path: /config/config.yaml subPath: config.yaml readOnly: true