Skip to content

Commit

Permalink
build(helm): add values.histogram_buckets option
Browse files Browse the repository at this point in the history
Signed-off-by: Clément Nussbaumer <[email protected]>
  • Loading branch information
clementnuss committed Apr 5, 2024
1 parent bb1a24d commit 2fc1dc9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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` |
Expand Down
4 changes: 4 additions & 0 deletions helm/kubenurse/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions helm/kubenurse/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2fc1dc9

Please sign in to comment.