Update metrics-server to 0.4.1 (#7188)

This commit is contained in:
Florian Ruynat 2021-01-19 14:45:44 +01:00 committed by GitHub
parent 9ef62194c3
commit b493c81ce8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 10 deletions

View file

@ -475,7 +475,7 @@ registry_image_repo: "{{ docker_image_repo }}/library/registry"
registry_image_tag: "2.7.1" registry_image_tag: "2.7.1"
registry_proxy_image_repo: "{{ kube_image_repo }}/kube-registry-proxy" registry_proxy_image_repo: "{{ kube_image_repo }}/kube-registry-proxy"
registry_proxy_image_tag: "0.4" registry_proxy_image_tag: "0.4"
metrics_server_version: "v0.3.7" metrics_server_version: "v0.4.1"
metrics_server_image_repo: "{{ kube_image_repo }}/metrics-server/metrics-server" metrics_server_image_repo: "{{ kube_image_repo }}/metrics-server/metrics-server"
metrics_server_image_tag: "{{ metrics_server_version }}" metrics_server_image_tag: "{{ metrics_server_version }}"
local_volume_provisioner_image_repo: "{{ quay_image_repo }}/external_storage/local-volume-provisioner" local_volume_provisioner_image_repo: "{{ quay_image_repo }}/external_storage/local-volume-provisioner"

View file

@ -36,10 +36,15 @@ spec:
{% if metrics_server_kubelet_preferred_address_types %} {% if metrics_server_kubelet_preferred_address_types %}
- --kubelet-preferred-address-types={{ metrics_server_kubelet_preferred_address_types }} - --kubelet-preferred-address-types={{ metrics_server_kubelet_preferred_address_types }}
{% endif %} {% endif %}
- --kubelet-use-node-status-port
{% if metrics_server_kubelet_insecure_tls %} {% if metrics_server_kubelet_insecure_tls %}
- --kubelet-insecure-tls - --kubelet-insecure-tls
{% endif %} {% endif %}
- --metric-resolution={{ metrics_server_metric_resolution }} - --metric-resolution={{ metrics_server_metric_resolution }}
resources:
requests:
cpu: 100m
memory: 300Mi
ports: ports:
- containerPort: 8443 - containerPort: 8443
name: https name: https
@ -49,21 +54,15 @@ spec:
mountPath: /tmp mountPath: /tmp
livenessProbe: livenessProbe:
httpGet: httpGet:
path: /healthz path: /healthz?exclude=readyz
port: https port: https
scheme: HTTPS scheme: HTTPS
successThreshold: 1
initialDelaySeconds: 20
failureThreshold: 3
timeoutSeconds: 10 timeoutSeconds: 10
readinessProbe: readinessProbe:
httpGet: httpGet:
path: /healthz path: /healthz?exclude=livez
port: https port: https
scheme: HTTPS scheme: HTTPS
successThreshold: 1
initialDelaySeconds: 20
failureThreshold: 3
timeoutSeconds: 10 timeoutSeconds: 10
securityContext: securityContext:
allowPrivilegeEscalation: false allowPrivilegeEscalation: false

View file

@ -10,6 +10,7 @@ spec:
selector: selector:
app.kubernetes.io/name: metrics-server app.kubernetes.io/name: metrics-server
ports: ports:
- port: 443 - name: https
port: 443
protocol: TCP protocol: TCP
targetPort: https targetPort: https