Skip to content

Commit 58d4532

Browse files
authored
add log-level helm param (#312)
1 parent 96fbc5d commit 58d4532

File tree

5 files changed

+10
-0
lines changed

5 files changed

+10
-0
lines changed

config/helm/aws-node-termination-handler/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ Parameter | Description | Default
7171
`cordonOnly` | If true, nodes will be cordoned but not drained when an interruption event occurs. | `false`
7272
`taintNode` | If true, nodes will be tainted when an interruption event occurs. Currently used taint keys are `aws-node-termination-handler/scheduled-maintenance`, `aws-node-termination-handler/spot-itn`, and `aws-node-termination-handler/asg-lifecycle-termination` | `false`
7373
`jsonLogging` | If true, use JSON-formatted logs instead of human readable logs. | `false`
74+
`logLevel` | Sets the log level (INFO, DEBUG, or ERROR) | `INFO`
7475
`enablePrometheusServer` | If true, start an http server exposing `/metrics` endpoint for prometheus. | `false`
7576
`prometheusServerPort` | Replaces the default HTTP port for exposing prometheus metrics. | `9092`
7677
`podMonitor.create` | if `true`, create a PodMonitor | `false`

config/helm/aws-node-termination-handler/templates/daemonset.linux.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,8 @@ spec:
156156
value: {{ .Values.taintNode | quote }}
157157
- name: JSON_LOGGING
158158
value: {{ .Values.jsonLogging | quote }}
159+
- name: LOG_LEVEL
160+
value: {{ .Values.logLevel | quote }}
159161
- name: WEBHOOK_PROXY
160162
value: {{ .Values.webhookProxy | quote }}
161163
- name: UPTIME_FROM_FILE

config/helm/aws-node-termination-handler/templates/daemonset.windows.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,8 @@ spec:
130130
value: {{ .Values.taintNode | quote }}
131131
- name: JSON_LOGGING
132132
value: {{ .Values.jsonLogging | quote }}
133+
- name: LOG_LEVEL
134+
value: {{ .Values.logLevel | quote }}
133135
- name: WEBHOOK_PROXY
134136
value: {{ .Values.webhookProxy | quote }}
135137
- name: UPTIME_FROM_FILE

config/helm/aws-node-termination-handler/templates/deployment.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,8 @@ spec:
112112
value: {{ .Values.taintNode | quote }}
113113
- name: JSON_LOGGING
114114
value: {{ .Values.jsonLogging | quote }}
115+
- name: LOG_LEVEL
116+
value: {{ .Values.logLevel | quote }}
115117
- name: WEBHOOK_PROXY
116118
value: {{ .Values.webhookProxy | quote }}
117119
- name: ENABLE_PROMETHEUS_SERVER

config/helm/aws-node-termination-handler/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,9 @@ taintNode: false
7676
# Log messages in JSON format.
7777
jsonLogging: false
7878

79+
# Sets the log level
80+
logLevel: "info"
81+
7982
# dryRun tells node-termination-handler to only log calls to kubernetes control plane
8083
dryRun: false
8184

0 commit comments

Comments
 (0)