Skip to content

Commit 8c458ec

Browse files
committed
chore(charts): add diagnostic mode
1 parent 56d7ad7 commit 8c458ec

2 files changed

Lines changed: 19 additions & 0 deletions

File tree

charts/fluentbit/templates/logger-fluentbit-daemon.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ spec:
4242
- name: drycc-logger-fluentbit
4343
image: {{.Values.imageRegistry}}/{{.Values.imageOrg}}/fluentbit:{{.Values.imageTag}}
4444
imagePullPolicy: {{.Values.imagePullPolicy}}
45+
{{- if .Values.diagnosticMode.enabled }}
46+
command: {{- include "common.tplvalues.render" (dict "value" .Values.diagnosticMode.command "context" $) | nindent 10 }}
47+
args: {{- include "common.tplvalues.render" (dict "value" .Values.diagnosticMode.args "context" $) | nindent 10 }}
48+
{{- end }}
4549
{{- if or (.Values.limitsCpu) (.Values.limitsMemory)}}
4650
resources:
4751
limits:

charts/fluentbit/values.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,21 @@ imageRegistry: "registry.drycc.cc"
55
# limitsCpu: "100m"
66
# limitsMemory: "50Mi"
77

8+
## Enable diagnostic mode
9+
##
10+
diagnosticMode:
11+
## @param diagnosticMode.enabled Enable diagnostic mode (all probes will be disabled and the command will be overridden)
12+
##
13+
enabled: false
14+
## @param diagnosticMode.command Command to override all containers
15+
##
16+
command:
17+
- sleep
18+
## @param diagnosticMode.args Args to override all containers
19+
##
20+
args:
21+
- infinity
22+
823
redis:
924
replicas: 1
1025

0 commit comments

Comments
 (0)