2024-04-07 09:05:08 -05:00
|
|
|
---
|
|
|
|
# yaml-language-server: $schema=https://raw.githubusercontent.com/bjw-s/helm-charts/main/charts/other/app-template/schemas/helmrelease-helm-v2beta2.schema.json
|
2024-05-28 10:02:09 -05:00
|
|
|
apiVersion: helm.toolkit.fluxcd.io/v2
|
2024-04-07 09:05:08 -05:00
|
|
|
kind: HelmRelease
|
|
|
|
metadata:
|
|
|
|
name: gatus
|
|
|
|
spec:
|
|
|
|
interval: 30m
|
|
|
|
chart:
|
|
|
|
spec:
|
|
|
|
chart: app-template
|
2024-08-27 07:31:38 -05:00
|
|
|
version: 3.4.0
|
2024-04-07 09:05:08 -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"
|
2024-04-13 09:37:40 -05:00
|
|
|
initContainers:
|
|
|
|
init-config:
|
|
|
|
image:
|
|
|
|
repository: ghcr.io/kiwigrid/k8s-sidecar
|
2024-08-30 00:32:07 -05:00
|
|
|
tag: 1.27.6@sha256:db85bd5532530d288736b35e63baceacbf570bf863d85a0404b33c1e1631f63b
|
2024-04-13 09:37:40 -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
|
2024-04-07 09:05:08 -05:00
|
|
|
containers:
|
|
|
|
app:
|
|
|
|
image:
|
|
|
|
repository: ghcr.io/twin/gatus
|
2024-05-21 18:06:28 -05:00
|
|
|
tag: v5.11.0@sha256:eb0374eb55e3ff84ec8f9ea10342ddb623cfba23e5836138896cde01f11cf23d
|
2024-04-07 09:05:08 -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"] }
|
2024-04-13 09:37:40 -05:00
|
|
|
resources: *resources
|
2024-04-07 09:05:08 -05:00
|
|
|
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:
|
2024-04-07 09:52:32 -05:00
|
|
|
className: external-nginx
|
2024-04-07 09:05:08 -05:00
|
|
|
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
|