Allow metrcs-server to start in hostNetwork mode (#10967)

Signed-off-by: Oleksandr Vorobiov <ovor@softserveinc.com>
This commit is contained in:
Oleksandr Vorobiov
2019-01-29 13:33:40 -08:00
committed by Kubernetes Prow Robot
parent d4b60b891d
commit f5859ded04
4 changed files with 13 additions and 1 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ apiVersion: v1
appVersion: 0.3.1
description: Metrics Server is a cluster-wide aggregator of resource usage data.
name: metrics-server
version: 2.1.1
version: 2.2.0
keywords:
- metrics-server
home: https://github.com/kubernetes-incubator/metrics-server
+1
View File
@@ -10,6 +10,7 @@ Parameter | Description | Default
`serviceAccount.create` | If `true`, create a new service account | `true`
`serviceAccount.name` | Service account to be used. If not set and `serviceAccount.create` is `true`, a name is generated using the fullname template | ``
`apiService.create` | Create the v1beta1.metrics.k8s.io API service | `true`
`hostNetwork.enable` | Enable hostNetwork mode | `false`
`image.repository` | Image repository | `gcr.io/google_containers/metrics-server-amd64`
`image.tag` | Image tag | `v0.3.1`
`image.pullPolicy` | Image pull policy | `IfNotPresent`
@@ -20,6 +20,9 @@ spec:
release: {{ .Release.Name }}
spec:
serviceAccountName: {{ template "metrics-server.serviceAccountName" . }}
{{ if .Values.hostNetwork.enabled }}
hostNetwork: true
{{ end }}
containers:
- name: metrics-server
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
+8
View File
@@ -17,6 +17,14 @@ apiService:
# work with this release.
create: true
hostNetwork:
# Specifies if metrics-server should be started in hostNetwork mode.
#
# You would require this enabled if you use alternate overlay networking for pods and
# API server unable to communicate with metrics-server. As an example, this is required
# if you use Weave netwok on EKS
enabled: false
image:
repository: gcr.io/google_containers/metrics-server-amd64
tag: v0.3.1