Skip to content

Commit 302d44e

Browse files
rsienkorahulait
authored andcommitted
Add allowUnauthorizedMetrics Helm value
1 parent e50da50 commit 302d44e

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

deploy/chart/templates/daemonset.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@ spec:
7171
{{- if .Values.nodeBalancerTags }}
7272
- --nodebalancer-tags={{ join " " .Values.nodeBalancerTags }}
7373
{{- end }}
74+
{{- if .Values.allowUnauthorizedMetrics }}
75+
- --authorization-always-allow-paths="/metrics"
76+
{{- end }}
7477
volumeMounts:
7578
- mountPath: /etc/kubernetes
7679
name: k8s

deploy/chart/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,3 +80,6 @@ volumes:
8080
volumeMounts:
8181
# - mountPath: /tmp/
8282
# name: test-volume
83+
84+
# This flag allows to scrape /metrics endpoint without authorization
85+
allowUnauthorizedMetrics: false

0 commit comments

Comments
 (0)