[feat] Update metrics server to v0.6.3 (#10026)

pull/10008/head
Mohamed Omar Zaian 2023-04-26 13:10:16 +02:00 committed by GitHub
parent 8727f88e41
commit a505a4c71f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 24 additions and 17 deletions

View File

@ -14,7 +14,7 @@ registry_enabled: false
# Metrics Server deployment # Metrics Server deployment
metrics_server_enabled: false metrics_server_enabled: false
# metrics_server_container_port: 4443 # metrics_server_container_port: 10250
# metrics_server_kubelet_insecure_tls: true # metrics_server_kubelet_insecure_tls: true
# metrics_server_metric_resolution: 15s # metrics_server_metric_resolution: 15s
# metrics_server_kubelet_preferred_address_types: "InternalIP,ExternalIP,Hostname" # metrics_server_kubelet_preferred_address_types: "InternalIP,ExternalIP,Hostname"

View File

@ -1079,7 +1079,7 @@ dnsautoscaler_image_tag: "{{ dnsautoscaler_version }}"
registry_version: "2.8.1" registry_version: "2.8.1"
registry_image_repo: "{{ docker_image_repo }}/library/registry" registry_image_repo: "{{ docker_image_repo }}/library/registry"
registry_image_tag: "{{ registry_version }}" registry_image_tag: "{{ registry_version }}"
metrics_server_version: "v0.6.2" metrics_server_version: "v0.6.3"
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_version: "v2.5.0" local_volume_provisioner_version: "v2.5.0"

View File

@ -1,5 +1,5 @@
--- ---
metrics_server_container_port: 4443 metrics_server_container_port: 10250
metrics_server_kubelet_insecure_tls: true metrics_server_kubelet_insecure_tls: true
metrics_server_kubelet_preferred_address_types: "InternalIP,ExternalIP,Hostname" metrics_server_kubelet_preferred_address_types: "InternalIP,ExternalIP,Hostname"
metrics_server_metric_resolution: 15s metrics_server_metric_resolution: 15s

View File

@ -23,8 +23,6 @@ spec:
labels: labels:
app.kubernetes.io/name: metrics-server app.kubernetes.io/name: metrics-server
version: {{ metrics_server_version }} version: {{ metrics_server_version }}
annotations:
seccomp.security.alpha.kubernetes.io/pod: 'runtime/default'
spec: spec:
priorityClassName: system-cluster-critical priorityClassName: system-cluster-critical
serviceAccountName: metrics-server serviceAccountName: metrics-server
@ -70,10 +68,14 @@ spec:
initialDelaySeconds: 40 initialDelaySeconds: 40
securityContext: securityContext:
readOnlyRootFilesystem: true readOnlyRootFilesystem: true
runAsGroup: 10001
runAsNonRoot: true runAsNonRoot: true
runAsUser: 10001 runAsUser: 1000
allowPrivilegeEscalation: false allowPrivilegeEscalation: false
seccompProfile:
type: RuntimeDefault
capabilities:
drop:
- ALL
resources: resources:
limits: limits:
cpu: {{ metrics_server_limits_cpu }} cpu: {{ metrics_server_limits_cpu }}

View File

@ -5,13 +5,18 @@ metadata:
labels: labels:
addonmanager.kubernetes.io/mode: Reconcile addonmanager.kubernetes.io/mode: Reconcile
rules: rules:
- apiGroups: - apiGroups:
- "" - ""
resources: resources:
- pods - nodes/metrics
- nodes verbs:
- nodes/metrics - get
verbs: - apiGroups:
- get - ""
- list resources:
- watch - pods
- nodes
verbs:
- get
- list
- watch