Skip to content

Commit 99d3765

Browse files
authored
Move livenessProbe settings to values.yaml (#39)
1 parent 15f7a90 commit 99d3765

3 files changed

Lines changed: 22 additions & 11 deletions

File tree

Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: collector
33
description: A Helm chart for Better Stack Collector - monitoring solution that collects metrics, logs, and traces
44
type: application
5-
version: 0.1.39
5+
version: 0.1.40
66
appVersion: "latest"
77
keywords:
88
- monitoring

templates/daemonset.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,10 @@ spec:
105105
- /bin/sh
106106
- -c
107107
- if [ -x /var/lib/better-stack/collector/healthcheck.sh ]; then /var/lib/better-stack/collector/healthcheck.sh; else exit 0; fi
108-
initialDelaySeconds: 120
109-
periodSeconds: 60
110-
timeoutSeconds: 10
111-
failureThreshold: 3
108+
initialDelaySeconds: {{ .Values.collector.livenessProbe.initialDelaySeconds }}
109+
periodSeconds: {{ .Values.collector.livenessProbe.periodSeconds }}
110+
timeoutSeconds: {{ .Values.collector.livenessProbe.timeoutSeconds }}
111+
failureThreshold: {{ .Values.collector.livenessProbe.failureThreshold }}
112112
volumeMounts:
113113
- name: betterstack-data
114114
mountPath: /var/lib/better-stack
@@ -181,10 +181,10 @@ spec:
181181
- /bin/sh
182182
- -c
183183
- if [ -x /var/lib/better-stack/ebpf/healthcheck.sh ]; then THRESHOLD="{{ $ebpf.memoryRestartThreshold }}" /var/lib/better-stack/ebpf/healthcheck.sh; else exit 0; fi
184-
initialDelaySeconds: 120
185-
periodSeconds: 60
186-
timeoutSeconds: 10
187-
failureThreshold: 3
184+
initialDelaySeconds: {{ $ebpf.livenessProbe.initialDelaySeconds }}
185+
periodSeconds: {{ $ebpf.livenessProbe.periodSeconds }}
186+
timeoutSeconds: {{ $ebpf.livenessProbe.timeoutSeconds }}
187+
failureThreshold: {{ $ebpf.livenessProbe.failureThreshold }}
188188
{{- end }}
189189
volumeMounts:
190190
- name: betterstack-data

values.yaml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ collector:
1111

1212
# Environment variables
1313
env:
14-
COLLECTOR_SECRET: "" # Required: Your collector secret (leave empty if using envFrom)
14+
COLLECTOR_SECRET: "" # Required: Your collector secret (leave empty if using envFrom)
1515
BASE_URL: "https://telemetry.betterstack.com"
1616
CLUSTER_COLLECTOR: ""
1717
VECTOR_LOG_FORMAT: "json"
@@ -43,6 +43,12 @@ collector:
4343
# Affinity
4444
affinity: {}
4545

46+
livenessProbe:
47+
initialDelaySeconds: 180
48+
periodSeconds: 60
49+
timeoutSeconds: 10
50+
failureThreshold: 5
51+
4652
# Host filesystem mount configuration
4753
# By default, mounts the entire host root filesystem at /host (read-only)
4854
# You can specify specific paths to mount instead. Each path will be mounted
@@ -85,6 +91,12 @@ ebpf:
8591
cpu: 800m
8692
memory: 1000Mi
8793

94+
livenessProbe:
95+
initialDelaySeconds: 120
96+
periodSeconds: 60
97+
timeoutSeconds: 10
98+
failureThreshold: 3
99+
88100
memoryRestartThreshold: 1450
89101

90102
# DEPRECATED: Use 'ebpf' instead. This key will be removed in a future release.
@@ -124,4 +136,3 @@ commonAnnotations: {}
124136

125137
# Priority class (optional)
126138
# priorityClassName: ""
127-

0 commit comments

Comments
 (0)