mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-02-28 09:39:12 +03:00
[feat] Update metrics server to v0.6.3 (#10026)
This commit is contained in:
committed by
GitHub
parent
8727f88e41
commit
a505a4c71f
@@ -1,5 +1,5 @@
|
||||
---
|
||||
metrics_server_container_port: 4443
|
||||
metrics_server_container_port: 10250
|
||||
metrics_server_kubelet_insecure_tls: true
|
||||
metrics_server_kubelet_preferred_address_types: "InternalIP,ExternalIP,Hostname"
|
||||
metrics_server_metric_resolution: 15s
|
||||
|
||||
@@ -23,8 +23,6 @@ spec:
|
||||
labels:
|
||||
app.kubernetes.io/name: metrics-server
|
||||
version: {{ metrics_server_version }}
|
||||
annotations:
|
||||
seccomp.security.alpha.kubernetes.io/pod: 'runtime/default'
|
||||
spec:
|
||||
priorityClassName: system-cluster-critical
|
||||
serviceAccountName: metrics-server
|
||||
@@ -70,10 +68,14 @@ spec:
|
||||
initialDelaySeconds: 40
|
||||
securityContext:
|
||||
readOnlyRootFilesystem: true
|
||||
runAsGroup: 10001
|
||||
runAsNonRoot: true
|
||||
runAsUser: 10001
|
||||
runAsUser: 1000
|
||||
allowPrivilegeEscalation: false
|
||||
seccompProfile:
|
||||
type: RuntimeDefault
|
||||
capabilities:
|
||||
drop:
|
||||
- ALL
|
||||
resources:
|
||||
limits:
|
||||
cpu: {{ metrics_server_limits_cpu }}
|
||||
|
||||
@@ -5,13 +5,18 @@ metadata:
|
||||
labels:
|
||||
addonmanager.kubernetes.io/mode: Reconcile
|
||||
rules:
|
||||
- apiGroups:
|
||||
- ""
|
||||
resources:
|
||||
- pods
|
||||
- nodes
|
||||
- nodes/metrics
|
||||
verbs:
|
||||
- get
|
||||
- list
|
||||
- watch
|
||||
- apiGroups:
|
||||
- ""
|
||||
resources:
|
||||
- nodes/metrics
|
||||
verbs:
|
||||
- get
|
||||
- apiGroups:
|
||||
- ""
|
||||
resources:
|
||||
- pods
|
||||
- nodes
|
||||
verbs:
|
||||
- get
|
||||
- list
|
||||
- watch
|
||||
|
||||
Reference in New Issue
Block a user