Adding metrics server to use host network (#9444)
* Adding metrics server to use host network * EXternalize value to a variable
This commit is contained in:
parent
d7f08d1b0c
commit
2a696ddb34
3 changed files with 3 additions and 0 deletions
|
@ -18,6 +18,7 @@ metrics_server_enabled: false
|
||||||
# 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"
|
||||||
|
# metrics_server_host_network: false
|
||||||
|
|
||||||
# Rancher Local Path Provisioner
|
# Rancher Local Path Provisioner
|
||||||
local_path_provisioner_enabled: false
|
local_path_provisioner_enabled: false
|
||||||
|
|
|
@ -7,3 +7,4 @@ metrics_server_limits_cpu: 100m
|
||||||
metrics_server_limits_memory: 200Mi
|
metrics_server_limits_memory: 200Mi
|
||||||
metrics_server_requests_cpu: 100m
|
metrics_server_requests_cpu: 100m
|
||||||
metrics_server_requests_memory: 200Mi
|
metrics_server_requests_memory: 200Mi
|
||||||
|
metrics_server_host_network: false
|
||||||
|
|
|
@ -27,6 +27,7 @@ spec:
|
||||||
spec:
|
spec:
|
||||||
priorityClassName: system-cluster-critical
|
priorityClassName: system-cluster-critical
|
||||||
serviceAccountName: metrics-server
|
serviceAccountName: metrics-server
|
||||||
|
hostNetwork: {{ metrics_server_host_network | default(false) }}
|
||||||
containers:
|
containers:
|
||||||
- name: metrics-server
|
- name: metrics-server
|
||||||
image: {{ metrics_server_image_repo }}:{{ metrics_server_image_tag }}
|
image: {{ metrics_server_image_repo }}:{{ metrics_server_image_tag }}
|
||||||
|
|
Loading…
Reference in a new issue