⬆️ 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:
spec:
chart: app-template
version: 1.5.1
version: 2.0.3
sourceRef:
kind: HelmRepository
name: bjw-s
@@ -27,28 +27,40 @@ spec:
uninstall:
keepHistory: false
values:
controllers:
main:
replicas: 2
strategy: RollingUpdate
annotations:
reloader.stakater.com/auto: "true"
initContainers:
01-init-db:
image: ghcr.io/auricom/postgres-init:15.4
imagePullPolicy: IfNotPresent
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
02-config-sync:
image: ghcr.io/kiwigrid/k8s-sidecar:1.25.2
imagePullPolicy: IfNotPresent
config-sync:
order: 2
image: *image
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"
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
@@ -58,6 +70,7 @@ spec:
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
globalMounts:
- path: /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 }