mirror of
https://github.com/auricom/home-cluster.git
synced 2025-09-17 18:24:14 +02:00
⬆️ gatus app-template v2
This commit is contained in:
@@ -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,28 +27,40 @@ spec:
|
|||||||
uninstall:
|
uninstall:
|
||||||
keepHistory: false
|
keepHistory: false
|
||||||
values:
|
values:
|
||||||
|
controllers:
|
||||||
|
main:
|
||||||
|
replicas: 2
|
||||||
|
strategy: RollingUpdate
|
||||||
|
annotations:
|
||||||
|
reloader.stakater.com/auto: "true"
|
||||||
initContainers:
|
initContainers:
|
||||||
01-init-db:
|
init-db:
|
||||||
image: ghcr.io/auricom/postgres-init:15.4
|
order: 1
|
||||||
imagePullPolicy: IfNotPresent
|
image: &image
|
||||||
|
repository: ghcr.io/auricom/postgres-init
|
||||||
|
tag: 15.4@sha256:83e1abf06be5741bdfb8cb53fc03a1ade6e6b5ec7b92a8aac0c69ba5dc7e51f0
|
||||||
|
pullPolicy: IfNotPresent
|
||||||
envFrom: &envFrom
|
envFrom: &envFrom
|
||||||
- secretRef:
|
- secretRef:
|
||||||
name: gatus-secret
|
name: gatus-secret
|
||||||
02-config-sync:
|
config-sync:
|
||||||
image: ghcr.io/kiwigrid/k8s-sidecar:1.25.2
|
order: 2
|
||||||
imagePullPolicy: IfNotPresent
|
image: *image
|
||||||
env:
|
env:
|
||||||
- { name: FOLDER, value: /config }
|
FOLDER: /config
|
||||||
- { name: LABEL, value: gatus.io/enabled }
|
LABEL: gatus.io/enabled
|
||||||
- { name: NAMESPACE, value: ALL }
|
NAMESPACE: ALL
|
||||||
- { name: RESOURCE, value: both }
|
RESOURCE: both
|
||||||
- { name: UNIQUE_FILENAMES, value: "true" }
|
UNIQUE_FILENAMES: true
|
||||||
- { name: METHOD, value: LIST }
|
METHOD: LIST
|
||||||
volumeMounts:
|
resources: &configSyncResources
|
||||||
- { name: config, mountPath: /config }
|
requests:
|
||||||
controller:
|
cpu: 10m
|
||||||
annotations:
|
memory: 10Mi
|
||||||
reloader.stakater.com/auto: "true"
|
limits:
|
||||||
|
memory: 128Mi
|
||||||
|
containers:
|
||||||
|
main:
|
||||||
image:
|
image:
|
||||||
repository: ghcr.io/twin/gatus
|
repository: ghcr.io/twin/gatus
|
||||||
tag: v5.6.0
|
tag: v5.6.0
|
||||||
@@ -58,6 +70,7 @@ spec:
|
|||||||
CUSTOM_WEB_PORT: &port 8080
|
CUSTOM_WEB_PORT: &port 8080
|
||||||
SECRET_CLUSTER_DOMAIN: ${SECRET_CLUSTER_DOMAIN}
|
SECRET_CLUSTER_DOMAIN: ${SECRET_CLUSTER_DOMAIN}
|
||||||
envFrom: *envFrom
|
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:
|
||||||
|
- path: /config/config.yaml
|
||||||
subPath: config.yaml
|
subPath: config.yaml
|
||||||
readOnly: true
|
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 }
|
|
||||||
|
Reference in New Issue
Block a user