mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
[stable/metrics-server] Add priorityClassName and podAnnotations to metrics server deployment (#12110)
* modified indent for deployment Signed-off-by: cw-sakamoto <sakamoto@chatwork.com> * add annotations and priorityClassName to metrics-server chart Signed-off-by: cw-sakamoto <sakamoto@chatwork.com> * modified comment in values.yaml Signed-off-by: cw-sakamoto <sakamoto@chatwork.com> * change tmpl 'if' to 'with' Signed-off-by: cw-sakamoto <sakamoto@chatwork.com>
This commit is contained in:
committed by
Kubernetes Prow Robot
parent
ce4694f7e7
commit
764c9dc322
@@ -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.4.0
|
||||
version: 2.5.0
|
||||
keywords:
|
||||
- metrics-server
|
||||
home: https://github.com/kubernetes-incubator/metrics-server
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# metrics-server
|
||||
|
||||
Metrics Server is a cluster-wide aggregator of resource usage data.
|
||||
[Metrics Server](https://github.com/kubernetes-incubator/metrics-server) is a cluster-wide aggregator of resource usage data.
|
||||
|
||||
## Configuration
|
||||
|
||||
@@ -23,3 +23,5 @@ Parameter | Description | Default
|
||||
`replicas` | Number of replicas | `1`
|
||||
`extraVolumeMounts` | Ability to provide volume mounts to the pod | `[]`
|
||||
`extraVolumes` | Ability to provide volumes to the pod | `[]`
|
||||
`podAnnotations` | annotations to be added to pods | `{}`
|
||||
`priorityClassName` | priorityClassName to be added to pods | `""`
|
||||
|
||||
@@ -18,11 +18,20 @@ spec:
|
||||
labels:
|
||||
app: {{ template "metrics-server.name" . }}
|
||||
release: {{ .Release.Name }}
|
||||
{{- with .Values.podAnnotations }}
|
||||
annotations:
|
||||
{{- range $key, $value := . }}
|
||||
{{ $key }}: {{ $value | quote }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
spec:
|
||||
{{- if .Values.priorityClassName }}
|
||||
priorityClassName: "{{ .Values.priorityClassName }}"
|
||||
{{- end }}
|
||||
serviceAccountName: {{ template "metrics-server.serviceAccountName" . }}
|
||||
{{ if .Values.hostNetwork.enabled }}
|
||||
{{- if .Values.hostNetwork.enabled }}
|
||||
hostNetwork: true
|
||||
{{ end }}
|
||||
{{- end }}
|
||||
containers:
|
||||
- name: metrics-server
|
||||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
||||
@@ -35,7 +44,7 @@ spec:
|
||||
{{- if .Values.extraVolumeMounts }}
|
||||
volumeMounts:
|
||||
{{ toYaml .Values.extraVolumeMounts | indent 12}}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- with .Values.resources }}
|
||||
resources:
|
||||
{{ toYaml . | indent 12 }}
|
||||
@@ -52,7 +61,7 @@ spec:
|
||||
tolerations:
|
||||
{{ toYaml . | indent 8 }}
|
||||
{{- end }}
|
||||
{{- if .Values.extraVolumes }}
|
||||
{{- if .Values.extraVolumes }}
|
||||
volumes:
|
||||
{{ toYaml .Values.extraVolumes | indent 8}}
|
||||
{{- end }}
|
||||
{{ toYaml .Values.extraVolumes | indent 8}}
|
||||
{{- end }}
|
||||
|
||||
@@ -46,6 +46,11 @@ affinity: {}
|
||||
|
||||
replicas: 1
|
||||
|
||||
podAnnotations: {}
|
||||
# scheduler.alpha.kubernetes.io/critical-pod: ''
|
||||
|
||||
# priorityClassName: system-node-critical
|
||||
|
||||
extraVolumeMounts: []
|
||||
# - name: secrets
|
||||
# mountPath: /etc/kubernetes/secrets
|
||||
|
||||
Reference in New Issue
Block a user