k3s/namespaces/monitoring/gatus/patches/deployment.yaml

75 lines
2 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: app
spec:
template:
spec:
serviceAccountName: gatus-k8s-sidecar
tolerations:
- key: "public"
operator: "Equal"
value: "true"
effect: "NoSchedule"
affinity:
nodeAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
preference:
matchExpressions:
- key: public
operator: In
values:
- "true"
containers:
- name: gatus
image: twinproduction/gatus:v5.17.0
imagePullPolicy: IfNotPresent
ports:
- containerPort: 8080
name: gatus
protocol: TCP
resources:
limits:
cpu: 250m
memory: 100M
requests:
cpu: 50m
memory: 30M
readinessProbe:
httpGet:
path: /health
port: 8080
initialDelaySeconds: 5
periodSeconds: 10
successThreshold: 1
failureThreshold: 3
livenessProbe:
httpGet:
path: /health
port: 8080
initialDelaySeconds: 10
periodSeconds: 10
successThreshold: 1
failureThreshold: 5
envFrom:
- configMapRef:
name: gatus-settings
volumeMounts:
- mountPath: /config/config.yaml
name: gatus-config
subPath: base-config.yaml
- name: config-collector
image: kiwigrid/k8s-sidecar:1.30.3
volumeMounts:
- name: collected
mountPath: /config/
envFrom:
- configMapRef:
name: k8s-sidecar-settings
volumes:
- configMap:
name: gatus-config
name: gatus-config
- name: collected
emptyDir: {}