diff --git a/kubernetes/apps/monitoring/gatus/app/helmrelease.yaml b/kubernetes/apps/monitoring/gatus/app/helmrelease.yaml index c0127c698..2d18ddb73 100644 --- a/kubernetes/apps/monitoring/gatus/app/helmrelease.yaml +++ b/kubernetes/apps/monitoring/gatus/app/helmrelease.yaml @@ -10,7 +10,7 @@ spec: chart: spec: chart: app-template - version: 1.5.1 + version: 2.0.3 sourceRef: kind: HelmRepository name: bjw-s @@ -27,37 +27,50 @@ spec: uninstall: keepHistory: false values: - initContainers: - 01-init-db: - image: ghcr.io/auricom/postgres-init:15.4 - imagePullPolicy: IfNotPresent - envFrom: &envFrom - - secretRef: - name: gatus-secret - 02-config-sync: - image: ghcr.io/kiwigrid/k8s-sidecar:1.25.2 - imagePullPolicy: IfNotPresent - env: - - { name: FOLDER, value: /config } - - { name: LABEL, value: gatus.io/enabled } - - { name: NAMESPACE, value: ALL } - - { name: RESOURCE, value: both } - - { name: UNIQUE_FILENAMES, value: "true" } - - { name: METHOD, value: LIST } - volumeMounts: - - { name: config, mountPath: /config } - controller: - annotations: - reloader.stakater.com/auto: "true" - image: - repository: ghcr.io/twin/gatus - tag: v5.6.0 - env: - TZ: ${TIMEZONE} - GATUS_CONFIG_PATH: /config - CUSTOM_WEB_PORT: &port 8080 - SECRET_CLUSTER_DOMAIN: ${SECRET_CLUSTER_DOMAIN} - envFrom: *envFrom + controllers: + main: + replicas: 2 + strategy: RollingUpdate + annotations: + reloader.stakater.com/auto: "true" + initContainers: + init-db: + order: 1 + image: &image + repository: ghcr.io/auricom/postgres-init + tag: 15.4@sha256:83e1abf06be5741bdfb8cb53fc03a1ade6e6b5ec7b92a8aac0c69ba5dc7e51f0 + pullPolicy: IfNotPresent + envFrom: &envFrom + - secretRef: + name: gatus-secret + config-sync: + order: 2 + image: *image + 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: + main: + image: + repository: ghcr.io/twin/gatus + tag: v5.6.0 + env: + TZ: ${TIMEZONE} + GATUS_CONFIG_PATH: /config + CUSTOM_WEB_PORT: &port 8080 + SECRET_CLUSTER_DOMAIN: ${SECRET_CLUSTER_DOMAIN} + envFrom: *envFrom + resources: *configSyncResources service: main: ports: @@ -66,16 +79,10 @@ spec: serviceMonitor: main: enabled: true - endpoints: - - port: http - scheme: http - path: /metrics - interval: 1m - scrapeTimeout: 10s ingress: main: enabled: true - ingressClassName: nginx + className: nginx annotations: external-dns.home.arpa/enabled: "true" hajimari.io/icon: mdi:list-status @@ -83,45 +90,23 @@ spec: - host: &host "status.${SECRET_CLUSTER_DOMAIN}" paths: - path: / - pathType: Prefix + service: + name: main + port: http tls: - hosts: - *host serviceAccount: create: true name: gatus - podSecurityContext: - runAsUser: 568 - runAsGroup: 568 - fsGroup: 568 - fsGroupChangePolicy: OnRootMismatch persistence: config: enabled: true type: emptyDir config-file: - enabled: true type: configMap name: gatus-configmap - mountPath: /config/config.yaml - subPath: config.yaml - readOnly: true - resources: - requests: - cpu: 100m - memory: 100Mi - limits: - memory: 500Mi - sidecars: - config-sync: - image: ghcr.io/kiwigrid/k8s-sidecar:1.25.2 - imagePullPolicy: IfNotPresent - env: - - { name: FOLDER, value: /config } - - { name: LABEL, value: gatus.io/enabled } - - { name: NAMESPACE, value: ALL } - - { name: RESOURCE, value: both } - - { name: UNIQUE_FILENAMES, value: "true" } - - { name: METHOD, value: WATCH } - volumeMounts: - - { name: config, mountPath: /config } + globalMounts: + - path: /config/config.yaml + subPath: config.yaml + readOnly: true