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..3c96043 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 | quote }} + {{- 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