From 2fc1dc96abf209e76a777dd5ec0a146d5f9845a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Nussbaumer?= Date: Fri, 5 Apr 2024 15:53:26 +0200 Subject: [PATCH] build(helm): add values.histogram_buckets option MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Clément Nussbaumer --- README.md | 1 + helm/kubenurse/templates/daemonset.yaml | 4 ++++ helm/kubenurse/values.yaml | 3 +++ 3 files changed, 8 insertions(+) diff --git a/README.md b/README.md index cc50d3c..804f869 100644 --- a/README.md +++ b/README.md @@ -74,6 +74,7 @@ The following command can be used to install kubenurse with Helm: `helm upgrade | allow_unschedulable | Sets `KUBENURSE_ALLOW_UNSCHEDULABLE` environment variable | `false` | | neighbour_filter | Sets `KUBENURSE_NEIGHBOUR_FILTER` environment variable | `app.kubernetes.io/name=kubenurse` | | neighbour_limit | Sets `KUBENURSE_NEIGHBOUR_LIMIT` environment variable | `10` | +| histogram_buckets | Sets `KUBENURSE_HISTOGRAM_BUCKETS` environment variable | | | extra_ca | Sets `KUBENURSE_EXTRA_CA` environment variable | | | check_api_server_direct | Sets `KUBENURSE_CHECK_API_SERVER_DIRECT` environment variable | `true` | | check_api_server_dns | Sets `KUBENURSE_CHECK_API_SERVER_DNS` environment variable | `true` | diff --git a/helm/kubenurse/templates/daemonset.yaml b/helm/kubenurse/templates/daemonset.yaml index fa5d011..bb65dfb 100644 --- a/helm/kubenurse/templates/daemonset.yaml +++ b/helm/kubenurse/templates/daemonset.yaml @@ -62,6 +62,10 @@ spec: - name: KUBENURSE_EXTRA_CA value: {{ .Values.extra_ca }} {{- end }} + {{- if .Values.histogram_buckets }} + - name: KUBENURSE_HISTOGRAM_BUCKETS + value: {{ .Values.histogram_buckets }} + {{- end }} - name: KUBENURSE_CHECK_API_SERVER_DIRECT value: {{ .Values.check_api_server_direct | quote }} - name: KUBENURSE_CHECK_API_SERVER_DNS diff --git a/helm/kubenurse/values.yaml b/helm/kubenurse/values.yaml index 2b7312a..c3e14ee 100644 --- a/helm/kubenurse/values.yaml +++ b/helm/kubenurse/values.yaml @@ -37,6 +37,9 @@ allow_unschedulable: false neighbour_filter: app.kubernetes.io/name=kubenurse # KUBENURSE_NEIGHBOUR_LIMIT neighbour_limit: 10 +# KUBENURSE_HISTOGRAM_BUCKETS +histogram_buckets: "" +# histogram_buckets: ".0005,.001,.0025,.005,.01,.025,.05,0.1,0.25,0.5,1" # default prometheus histogram buckets divided by 10 # KUBENURSE_EXTRA_CA extra_ca: "" # KUBENURSE_CHECK_API_SERVER_DIRECT