Merge pull request #91460 from wojtek-t/addon_resizer_1_8_9

GCE: Bump addon resizer to 1.8.9 version and use metrics to get cluster size there
This commit is contained in:
Kubernetes Prow Robot 2020-05-29 11:56:09 -07:00 committed by GitHub
commit 5b1d78599f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View File

@ -64,7 +64,7 @@ spec:
name: https name: https
protocol: TCP protocol: TCP
- name: metrics-server-nanny - name: metrics-server-nanny
image: k8s.gcr.io/addon-resizer:1.8.7 image: k8s.gcr.io/addon-resizer:1.8.9
resources: resources:
limits: limits:
cpu: 100m cpu: 100m
@ -99,6 +99,8 @@ spec:
# Specifies the smallest cluster (defined in number of nodes) # Specifies the smallest cluster (defined in number of nodes)
# resources will be scaled to. # resources will be scaled to.
- --minClusterSize={{ metrics_server_min_cluster_size }} - --minClusterSize={{ metrics_server_min_cluster_size }}
# Use kube-apiserver metrics to avoid periodically listing nodes.
- --use-metrics=true
volumes: volumes:
- name: metrics-server-config-volume - name: metrics-server-config-volume
configMap: configMap:

View File

@ -25,6 +25,10 @@ rules:
- list - list
- update - update
- watch - watch
- nonResourceURLs:
- /metrics
verbs:
- get
--- ---
apiVersion: rbac.authorization.k8s.io/v1 apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding kind: ClusterRoleBinding