Skip to content

Commit

Permalink
chart: add enableHostNetwork param (zalando-incubator#8)
Browse files Browse the repository at this point in the history
* chart: add enableHostNetwork param

* bump chart version

* chart: set enableHostNetwork to false by default
  • Loading branch information
sancyx authored Apr 10, 2020
1 parent 69206ac commit 5ac196f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion deploy/charts/kube-metrics-adapter/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: kube-metrics-adapter
version: 0.1.2
version: 0.1.3
appVersion: 0.1.1
description: A Helm chart for kube-metrics-adapter
home: https://github.com/zalando-incubator/kube-metrics-adapter
Expand Down
1 change: 1 addition & 0 deletions deploy/charts/kube-metrics-adapter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ The following table lists the configurable parameters of the Prometheus Adapter
| `resources` | CPU/Memory resource requests/limits | `{}` |
| `service.annotations` | Annotations to add to the service | `{}` |
| `adapter.podAnnotations` | Annotations to add to the pods | `{}` |
| `enableHostNetwork` | Enable host network for adapter | `false` |
| `service.port` | Service port to expose | `443` |
| `service.internalPort` | Service internal port | `6443` |
| `service.type` | Type of service to create | `ClusterIP` |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ spec:
release: "{{ .Release.Name }}"
heritage: "{{ .Release.Service }}"
spec:
hostNetwork: {{ .Values.enableHostNetwork }}
serviceAccountName: {{ template "kube-metrics-adapter.fullname" . }}
securityContext:
runAsNonRoot: true
Expand Down
2 changes: 2 additions & 0 deletions deploy/charts/kube-metrics-adapter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ logLevel: 1
enableCustomMetricsApi: false
enableExternalMetricsApi: true

enableHostNetwork: false

# Url to access prometheus
prometheus:
url:
Expand Down

0 comments on commit 5ac196f

Please sign in to comment.