Add affinity to metrics-server

This commit is contained in:
Carlos Rodriguez Hernandez
2019-09-04 13:36:49 +00:00
parent 4c274c4c08
commit ee75f6ca06
4 changed files with 12 additions and 1 deletions

View File

@@ -1,6 +1,6 @@
apiVersion: v1
name: metrics-server
version: 3.1.1
version: 3.1.2
appVersion: 0.3.3
description: Metrics Server is a cluster-wide aggregator of resource usage data. Metrics Server collects metrics from the Summary API, exposed by Kubelet on each node.
keywords:

View File

@@ -68,6 +68,7 @@ The following tables lists the configurable parameters of the Metrics Server cha
| `serviceAccount.create` | Specifies whether a ServiceAccount should be created | `true` |
| `serviceAccount.name` | The name of the ServiceAccount to create | Generated using the fullname template |
| `apiService.create` | Specifies whether the v1beta1.metrics.k8s.io API service should be created (This should not be necessary in k8s version >= 1.8) | `false` |
| `affinity` | Map of node/pod affinities | `{}` |
Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example,

View File

@@ -39,3 +39,8 @@ spec:
{{- range $key, $value := .Values.extraArgs }}
- --{{ $key }}={{ $value }}
{{- end }}
{{- with .Values.affinity }}
affinity:
{{ toYaml . | indent 8 }}
{{- end }}

View File

@@ -79,3 +79,8 @@ service:
##
annotations: {}
# loadBalancerIP:
## Affinity for pod assignment
## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
##
affinity: {}