2024-09-05 22:55:58 -05:00
|
|
|
---
|
2024-10-14 09:26:12 -05:00
|
|
|
# yaml-language-server: $schema=https://raw.githubusercontent.com/bjw-s/helm-charts/main/charts/other/app-template/schemas/helmrelease-helm-v2.schema.json
|
2024-09-05 22:55:58 -05:00
|
|
|
apiVersion: helm.toolkit.fluxcd.io/v2
|
|
|
|
kind: HelmRelease
|
|
|
|
metadata:
|
|
|
|
name: gatus
|
|
|
|
spec:
|
|
|
|
interval: 30m
|
|
|
|
chart:
|
|
|
|
spec:
|
|
|
|
chart: app-template
|
2024-10-10 06:01:18 -05:00
|
|
|
version: 3.5.1
|
2024-09-05 22:55:58 -05:00
|
|
|
sourceRef:
|
|
|
|
kind: HelmRepository
|
|
|
|
name: bjw-s
|
|
|
|
namespace: flux-system
|
|
|
|
install:
|
|
|
|
remediation:
|
|
|
|
retries: 3
|
|
|
|
upgrade:
|
|
|
|
cleanupOnFail: true
|
|
|
|
remediation:
|
|
|
|
strategy: rollback
|
|
|
|
retries: 3
|
|
|
|
values:
|
|
|
|
controllers:
|
|
|
|
gatus:
|
|
|
|
annotations:
|
|
|
|
reloader.stakater.com/auto: "true"
|
|
|
|
initContainers:
|
|
|
|
init-config:
|
|
|
|
image:
|
|
|
|
repository: ghcr.io/kiwigrid/k8s-sidecar
|
2024-12-18 03:35:41 -06:00
|
|
|
tag: 1.28.4@sha256:20caf4e241e1f9f9231527db5e75b735aa7b0da7bee3d262cbe369bb9b33469f
|
2024-09-05 22:55:58 -05:00
|
|
|
env:
|
|
|
|
FOLDER: /config
|
|
|
|
LABEL: gatus.io/enabled
|
|
|
|
NAMESPACE: ALL
|
|
|
|
RESOURCE: both
|
|
|
|
UNIQUE_FILENAMES: true
|
|
|
|
METHOD: WATCH
|
|
|
|
restartPolicy: Always
|
|
|
|
resources: &resources
|
|
|
|
requests:
|
|
|
|
cpu: 10m
|
|
|
|
limits:
|
|
|
|
memory: 256Mi
|
|
|
|
containers:
|
|
|
|
app:
|
|
|
|
image:
|
|
|
|
repository: ghcr.io/twin/gatus
|
2024-11-05 10:03:21 -06:00
|
|
|
tag: v5.13.1@sha256:24842a8adebd3dd4bd04a4038ffa27cb2fe72bb50631415e0fb2915063fc1993
|
2024-09-05 22:55:58 -05:00
|
|
|
env:
|
|
|
|
TZ: America/Chicago
|
|
|
|
GATUS_CONFIG_PATH: /config
|
|
|
|
GATUS_DELAY_START_SECONDS: 5
|
|
|
|
CUSTOM_WEB_PORT: &port 80
|
|
|
|
envFrom:
|
|
|
|
- secretRef:
|
|
|
|
name: gatus-secret
|
|
|
|
probes:
|
|
|
|
liveness: &probes
|
|
|
|
enabled: true
|
|
|
|
custom: true
|
|
|
|
spec:
|
|
|
|
httpGet:
|
|
|
|
path: /health
|
|
|
|
port: *port
|
|
|
|
initialDelaySeconds: 0
|
|
|
|
periodSeconds: 10
|
|
|
|
timeoutSeconds: 1
|
|
|
|
failureThreshold: 3
|
|
|
|
readiness: *probes
|
|
|
|
securityContext:
|
|
|
|
allowPrivilegeEscalation: false
|
|
|
|
readOnlyRootFilesystem: true
|
|
|
|
capabilities: { drop: ["ALL"] }
|
|
|
|
resources: *resources
|
|
|
|
pod:
|
|
|
|
dnsConfig:
|
|
|
|
options:
|
|
|
|
- { name: ndots, value: "1" }
|
|
|
|
securityContext:
|
|
|
|
runAsUser: 568
|
|
|
|
runAsGroup: 568
|
|
|
|
runAsNonRoot: true
|
|
|
|
fsGroup: 568
|
|
|
|
fsGroupChangePolicy: OnRootMismatch
|
|
|
|
service:
|
|
|
|
app:
|
|
|
|
controller: gatus
|
|
|
|
ports:
|
|
|
|
http:
|
|
|
|
port: *port
|
|
|
|
serviceMonitor:
|
|
|
|
app:
|
|
|
|
serviceName: gatus
|
|
|
|
endpoints:
|
|
|
|
- port: http
|
|
|
|
scheme: http
|
|
|
|
path: /metrics
|
|
|
|
interval: 1m
|
|
|
|
scrapeTimeout: 10s
|
|
|
|
ingress:
|
|
|
|
app:
|
|
|
|
className: external-nginx
|
|
|
|
annotations:
|
|
|
|
external-dns.alpha.kubernetes.io/cloudflare-proxied: "true"
|
|
|
|
external-dns.alpha.kubernetes.io/target: external.hsn.dev
|
|
|
|
hosts:
|
|
|
|
- host: &host status.hsn.dev
|
|
|
|
paths:
|
|
|
|
- path: /
|
|
|
|
service:
|
|
|
|
identifier: app
|
|
|
|
port: http
|
|
|
|
tls:
|
|
|
|
- hosts: [*host]
|
|
|
|
serviceAccount:
|
|
|
|
create: true
|
|
|
|
name: gatus
|
|
|
|
persistence:
|
|
|
|
config:
|
|
|
|
type: emptyDir
|
|
|
|
config-file:
|
|
|
|
type: configMap
|
|
|
|
name: gatus-configmap
|
|
|
|
globalMounts:
|
|
|
|
- path: /config/config.yaml
|
|
|
|
subPath: config.yaml
|
|
|
|
readOnly: true
|