Update metrics-server to 0.5.0 (#7864)
parent
c119620f7c
commit
c06896a352
|
@ -15,7 +15,7 @@ registry_enabled: false
|
||||||
# Metrics Server deployment
|
# Metrics Server deployment
|
||||||
metrics_server_enabled: false
|
metrics_server_enabled: false
|
||||||
# metrics_server_kubelet_insecure_tls: true
|
# metrics_server_kubelet_insecure_tls: true
|
||||||
# metrics_server_metric_resolution: 60s
|
# metrics_server_metric_resolution: 15s
|
||||||
# metrics_server_kubelet_preferred_address_types: "InternalIP"
|
# metrics_server_kubelet_preferred_address_types: "InternalIP"
|
||||||
|
|
||||||
# Rancher Local Path Provisioner
|
# Rancher Local Path Provisioner
|
||||||
|
|
|
@ -603,7 +603,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.4.2"
|
metrics_server_version: "v0.5.0"
|
||||||
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"
|
||||||
|
|
|
@ -1,16 +1,16 @@
|
||||||
---
|
---
|
||||||
metrics_server_kubelet_insecure_tls: true
|
metrics_server_kubelet_insecure_tls: true
|
||||||
metrics_server_kubelet_preferred_address_types: "InternalIP"
|
metrics_server_kubelet_preferred_address_types: "InternalIP"
|
||||||
metrics_server_metric_resolution: 60s
|
metrics_server_metric_resolution: 15s
|
||||||
metrics_server_cpu: 40m
|
metrics_server_cpu: 20m
|
||||||
metrics_server_memory: 35Mi
|
metrics_server_memory: 15Mi
|
||||||
metrics_server_memory_per_node: 4Mi
|
metrics_server_memory_per_node: 2Mi
|
||||||
metrics_server_min_cluster_size: 5
|
metrics_server_min_cluster_size: 10
|
||||||
metrics_server_limits_cpu: 43m
|
metrics_server_limits_cpu: 100m
|
||||||
metrics_server_limits_memory: 55Mi
|
metrics_server_limits_memory: 200Mi
|
||||||
metrics_server_requests_cpu: 43m
|
metrics_server_requests_cpu: 100m
|
||||||
metrics_server_requests_memory: 55Mi
|
metrics_server_requests_memory: 200Mi
|
||||||
addon_resizer_limits_cpu: 100m
|
addon_resizer_limits_cpu: 40m
|
||||||
addon_resizer_limits_memory: 300Mi
|
addon_resizer_limits_memory: 25Mi
|
||||||
addon_resizer_requests_cpu: 5m
|
addon_resizer_requests_cpu: 40m
|
||||||
addon_resizer_requests_memory: 50Mi
|
addon_resizer_requests_memory: 25Mi
|
||||||
|
|
|
@ -13,6 +13,9 @@ spec:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app.kubernetes.io/name: metrics-server
|
app.kubernetes.io/name: metrics-server
|
||||||
version: {{ metrics_server_version }}
|
version: {{ metrics_server_version }}
|
||||||
|
strategy:
|
||||||
|
rollingUpdate:
|
||||||
|
maxUnavailable: 0
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
name: metrics-server
|
name: metrics-server
|
||||||
|
@ -28,11 +31,10 @@ spec:
|
||||||
- name: metrics-server
|
- name: metrics-server
|
||||||
image: {{ metrics_server_image_repo }}:{{ metrics_server_image_tag }}
|
image: {{ metrics_server_image_repo }}:{{ metrics_server_image_tag }}
|
||||||
imagePullPolicy: {{ k8s_image_pull_policy }}
|
imagePullPolicy: {{ k8s_image_pull_policy }}
|
||||||
command:
|
args:
|
||||||
- /metrics-server
|
|
||||||
- --logtostderr
|
- --logtostderr
|
||||||
- --cert-dir=/tmp
|
- --cert-dir=/tmp
|
||||||
- --secure-port=8443
|
- --secure-port=443
|
||||||
{% 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 %}
|
||||||
|
@ -41,12 +43,8 @@ spec:
|
||||||
- --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: 443
|
||||||
name: https
|
name: https
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
|
@ -54,20 +52,25 @@ spec:
|
||||||
mountPath: /tmp
|
mountPath: /tmp
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
path: /healthz?exclude=readyz
|
path: /livez
|
||||||
port: https
|
port: https
|
||||||
scheme: HTTPS
|
scheme: HTTPS
|
||||||
timeoutSeconds: 10
|
periodSeconds: 10
|
||||||
|
failureThreshold: 3
|
||||||
|
initialDelaySeconds: 40
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
path: /healthz?exclude=livez
|
path: /readyz
|
||||||
port: https
|
port: https
|
||||||
scheme: HTTPS
|
scheme: HTTPS
|
||||||
timeoutSeconds: 10
|
periodSeconds: 10
|
||||||
|
failureThreshold: 3
|
||||||
|
initialDelaySeconds: 40
|
||||||
securityContext:
|
securityContext:
|
||||||
allowPrivilegeEscalation: false
|
allowPrivilegeEscalation: false
|
||||||
capabilities:
|
capabilities:
|
||||||
drop: ["all"]
|
drop: ["all"]
|
||||||
|
add: ["CAP_NET_BIND_SERVICE"]
|
||||||
readOnlyRootFilesystem: true
|
readOnlyRootFilesystem: true
|
||||||
runAsGroup: 10001
|
runAsGroup: 10001
|
||||||
runAsNonRoot: true
|
runAsNonRoot: true
|
||||||
|
@ -105,7 +108,7 @@ spec:
|
||||||
- /pod_nanny
|
- /pod_nanny
|
||||||
- --config-dir=/etc/config
|
- --config-dir=/etc/config
|
||||||
- --cpu={{ metrics_server_cpu }}
|
- --cpu={{ metrics_server_cpu }}
|
||||||
- --extra-cpu=0.5m
|
- --extra-cpu=1m
|
||||||
- --memory={{ metrics_server_memory }}
|
- --memory={{ metrics_server_memory }}
|
||||||
- --extra-memory={{ metrics_server_memory_per_node }}
|
- --extra-memory={{ metrics_server_memory_per_node }}
|
||||||
- --threshold=5
|
- --threshold=5
|
||||||
|
|
Loading…
Reference in New Issue