⬆️ gatus app-template v2

This commit is contained in:
auricom
2023-11-04 17:17:18 +01:00
parent 241795d8f5
commit 13f6e75b79

View File

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