Adding metrics server to use host network (#9444)

* Adding metrics server to use host network

* EXternalize value to a variable
pull/9367/head
ausias-armesto 2022-11-06 11:38:15 +01:00 committed by GitHub
parent d7f08d1b0c
commit 2a696ddb34
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 0 deletions

View File

@ -18,6 +18,7 @@ metrics_server_enabled: false
# metrics_server_kubelet_insecure_tls: true
# metrics_server_metric_resolution: 15s
# metrics_server_kubelet_preferred_address_types: "InternalIP,ExternalIP,Hostname"
# metrics_server_host_network: false
# Rancher Local Path Provisioner
local_path_provisioner_enabled: false

View File

@ -7,3 +7,4 @@ metrics_server_limits_cpu: 100m
metrics_server_limits_memory: 200Mi
metrics_server_requests_cpu: 100m
metrics_server_requests_memory: 200Mi
metrics_server_host_network: false

View File

@ -27,6 +27,7 @@ spec:
spec:
priorityClassName: system-cluster-critical
serviceAccountName: metrics-server
hostNetwork: {{ metrics_server_host_network | default(false) }}
containers:
- name: metrics-server
image: {{ metrics_server_image_repo }}:{{ metrics_server_image_tag }}