Skip to content
This repository has been archived by the owner on Feb 22, 2022. It is now read-only.

Commit

Permalink
[stable/kube-state-metrics]: Add support for host networking (#13414)
Browse files Browse the repository at this point in the history
* [stable/kube-state-metrics]: Add support for host networking

Signed-off-by: Nicholas Capo <[email protected]>

* [stable/kube-state-metrics] Remove unknown filter

Signed-off-by: Nicholas Capo <[email protected]>
  • Loading branch information
nicholascapo authored and k8s-ci-robot committed Apr 30, 2019
1 parent fdcc46f commit 59cddbf
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion stable/kube-state-metrics/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ keywords:
- metric
- monitoring
- prometheus
version: 1.1.0
version: 1.2.0
appVersion: 1.5.0
home: https://github.com/kubernetes/kube-state-metrics/
sources:
Expand Down
1 change: 1 addition & 0 deletions stable/kube-state-metrics/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ $ helm install stable/kube-state-metrics
| `image.pullPolicy` | Image pull policy | IfNotPresent |
| `replicas` | Number of replicas | 1 |
| `service.port` | The port of the container | 8080 |
| `hostNetwork` | Whether or not to use the host network | false |
| `prometheusScrape` | Whether or not enable prom scrape | true |
| `rbac.create` | If true, create & use RBAC resources | true |
| `serviceAccount.create` | If true, and rbac true, create & use serviceAccount | true |
Expand Down
2 changes: 1 addition & 1 deletion stable/kube-state-metrics/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ spec:
{{ toYaml .Values.podAnnotations | indent 8 }}
{{- end }}
spec:
hostNetwork: {{ .Values.hostNetwork }}
serviceAccountName: {{ template "kube-state-metrics.serviceAccountName" . }}
{{- if .Values.securityContext.enabled }}
securityContext:
Expand Down Expand Up @@ -114,4 +115,3 @@ spec:
tolerations:
{{ toYaml .Values.tolerations | indent 8 }}
{{- end }}

2 changes: 2 additions & 0 deletions stable/kube-state-metrics/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ service:
nodePort: 0
loadBalancerIP: ""

hostNetwork: false

rbac:
# If true, create & use RBAC resources
create: true
Expand Down

0 comments on commit 59cddbf

Please sign in to comment.