Skip to content

Commit 1bccd95

Browse files
committed
Add logVerbosity Helm chart parameter
Signed-off-by: Dr. Jan-Philip Gehrcke <[email protected]>
1 parent e089759 commit 1bccd95

File tree

3 files changed

+27
-3
lines changed

3 files changed

+27
-3
lines changed

deployments/helm/nvidia-dra-driver-gpu/templates/controller.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ spec:
5252
{{- toYaml .Values.controller.containers.computeDomain.securityContext | nindent 10 }}
5353
image: {{ include "nvidia-dra-driver-gpu.fullimage" . }}
5454
imagePullPolicy: {{ .Values.image.pullPolicy }}
55-
command: ["compute-domain-controller", "-v", "6"]
55+
command: ["compute-domain-controller", "-v", "{{ .Values.logVerbosity }}"]
5656
resources:
5757
{{- toYaml .Values.controller.containers.computeDomain.resources | nindent 10 }}
5858
env:

deployments/helm/nvidia-dra-driver-gpu/templates/kubeletplugin.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ spec:
9999
sed -i 's/^ModifyDeviceFiles: 1$/ModifyDeviceFiles: 0/' root/gpu-params
100100
mount --bind root/gpu-params /proc/driver/nvidia/params
101101
fi
102-
compute-domain-kubelet-plugin -v 6
102+
compute-domain-kubelet-plugin -v {{ .Values.logVerbosity }}
103103
resources:
104104
{{- toYaml .Values.kubeletPlugin.containers.computeDomains.resources | nindent 10 }}
105105
{{/*
@@ -181,7 +181,7 @@ spec:
181181
sed -i 's/^ModifyDeviceFiles: 1$/ModifyDeviceFiles: 0/' root/gpu-params
182182
mount --bind root/gpu-params /proc/driver/nvidia/params
183183
fi
184-
gpu-kubelet-plugin -v 6
184+
gpu-kubelet-plugin -v {{ .Values.logVerbosity }}
185185
resources:
186186
{{- toYaml .Values.kubeletPlugin.containers.gpus.resources | nindent 10 }}
187187
{{/*

deployments/helm/nvidia-dra-driver-gpu/values.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,30 @@ resources:
6969
# LoggingBetaOptions: true # Kubernetes logging beta features
7070
featureGates: {}
7171

72+
# klog verbosity for all components. Zero or greater. Higher number: higher
73+
# verbosity. Warning and error log messages are always logged (regardless of
74+
# this setting). Info-level messages on level 0 and are also always logged (this
75+
# cannot be prevented).
76+
#
77+
# Level 0:
78+
# - Configuration (startup)
79+
# - Permanent error upon (un)preparing device
80+
#
81+
# Level 1 (default):
82+
# - Device (un)prepare confirmation with claim UID
83+
# - Workqueue reconciliation failures (noisy: mainly expected, retryable errors)
84+
# - Controller: cleanup of stale objects
85+
#
86+
# Level 2:
87+
# - Unprepare noop
88+
# - Controller: added/updated object callback confirmation
89+
#
90+
# Level 6 and higher:
91+
# - Checkpoint file updates
92+
# - Kubelet plugin GRPC request/response detail
93+
#
94+
logVerbosity: "1"
95+
7296
# Webhook configuration
7397
webhook:
7498
enabled: false

0 commit comments

Comments
 (0)