Skip to content

Commit

Permalink
Add options for volumeMounts and volumes in the Metrics Server chart (h…
Browse files Browse the repository at this point in the history
…elm#11383)

* Added new values options to main README file.

Signed-off-by: Steven Wade <[email protected]>

* Minor bump on metrics server chart version.

Signed-off-by: Steven Wade <[email protected]>

* Removing too many blank lines in metrics server chart values.yaml

Signed-off-by: Steven Wade <[email protected]>

* Adding back a newline to the metrics server chart value.yaml file.

Signed-off-by: Steven Wade <[email protected]>
  • Loading branch information
swade1987 authored and k8s-ci-robot committed Feb 13, 2019
1 parent 0513270 commit 8f9c132
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 1 deletion.
2 changes: 1 addition & 1 deletion stable/metrics-server/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.3.0
version: 2.4.0
keywords:
- metrics-server
home: https://github.com/kubernetes-incubator/metrics-server
Expand Down
2 changes: 2 additions & 0 deletions stable/metrics-server/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,5 @@ Parameter | Description | Default
`nodeSelector` | Node labels for pod assignment | `{}`
`affinity` | Node affinity | `{}`
`replicas` | Number of replicas | `1`
`extraVolumeMounts` | Ability to provide volume mounts to the pod | `[]`
`extraVolumes` | Ability to provide volumes to the pod | `[]`
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ spec:
{{- range .Values.args }}
- {{ . | quote }}
{{- end }}
{{- if .Values.extraVolumeMounts }}
volumeMounts:
{{ toYaml .Values.extraVolumeMounts | indent 12}}
{{- end }}
{{- with .Values.resources }}
resources:
{{ toYaml . | indent 12 }}
Expand All @@ -48,3 +52,7 @@ spec:
tolerations:
{{ toYaml . | indent 8 }}
{{- end }}
{{- if .Values.extraVolumes }}
volumes:
{{ toYaml .Values.extraVolumes | indent 8}}
{{- end }}
10 changes: 10 additions & 0 deletions stable/metrics-server/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,13 @@ tolerations: []
affinity: {}

replicas: 1

extraVolumeMounts: []
# - name: secrets
# mountPath: /etc/kubernetes/secrets
# readOnly: true

extraVolumes: []
# - name: secrets
# secret:
# secretName: kube-apiserver

0 comments on commit 8f9c132

Please sign in to comment.