Skip to content

Commit

Permalink
feat: add otelcol's liveness and readiness probes configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
pmalek committed Feb 9, 2022
1 parent 475633f commit 4b41661
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
2 changes: 2 additions & 0 deletions deploy/helm/sumologic/templates/logs/otelcol/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,12 @@ spec:
httpGet:
path: /
port: 13133 # Health Check extension default port.
{{- toYaml .Values.metadata.logs.statefulset.containers.otelcol.livenessProbe | nindent 10 }}
readinessProbe:
httpGet:
path: /
port: 13133 # Health Check extension default port.
{{- toYaml .Values.metadata.logs.statefulset.containers.otelcol.readinessProbe | nindent 10 }}
volumeMounts:
- name: config-volume
mountPath: /etc/otel/config.yaml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,12 @@ spec:
httpGet:
path: /
port: 13133 # Health Check extension default port.
{{- toYaml .Values.metadata.metrics.statefulset.containers.otelcol.livenessProbe | nindent 10 }}
readinessProbe:
httpGet:
path: /
port: 13133 # Health Check extension default port.
{{- toYaml .Values.metadata.metrics.statefulset.containers.otelcol.readinessProbe | nindent 10 }}
volumeMounts:
- name: config-volume
mountPath: /etc/otel/config.yaml
Expand Down
16 changes: 16 additions & 0 deletions deploy/helm/sumologic/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3794,6 +3794,14 @@ metadata:
containers:
otelcol:
securityContext: {}
livenessProbe:
periodSeconds: 10
timeoutSeconds: 3
failureThreshold: 3
readinessProbe:
periodSeconds: 10
timeoutSeconds: 3
failureThreshold: 3

## Extra Environment Values - allows yaml definitions
# extraEnvVars:
Expand Down Expand Up @@ -4169,6 +4177,14 @@ metadata:
containers:
otelcol:
securityContext: {}
livenessProbe:
periodSeconds: 10
timeoutSeconds: 3
failureThreshold: 3
readinessProbe:
periodSeconds: 10
timeoutSeconds: 3
failureThreshold: 3

## Extra Environment Values - allows yaml definitions
# extraEnvVars:
Expand Down

0 comments on commit 4b41661

Please sign in to comment.