metrics-server: proper defaults, cleaner deploy template

pull/11568/head
Max Gautier 2024-09-23 15:42:24 +02:00
parent dba00f2d85
commit 0679d9c8e9
No known key found for this signature in database
2 changed files with 11 additions and 11 deletions

View File

@ -9,6 +9,6 @@ metrics_server_requests_cpu: 100m
metrics_server_requests_memory: 200Mi metrics_server_requests_memory: 200Mi
metrics_server_host_network: false metrics_server_host_network: false
metrics_server_replicas: 1 metrics_server_replicas: 1
# metrics_server_extra_tolerations: [] metrics_server_extra_tolerations: []
# metrics_server_extra_affinity: {} metrics_server_extra_affinity: {}
# metrics_server_nodeselector: {} metrics_server_nodeselector: {}

View File

@ -88,9 +88,9 @@ spec:
tolerations: tolerations:
- key: node-role.kubernetes.io/control-plane - key: node-role.kubernetes.io/control-plane
effect: NoSchedule effect: NoSchedule
{% if metrics_server_extra_tolerations is defined %} {% if metrics_server_extra_tolerations %}
{{ metrics_server_extra_tolerations | list | to_nice_yaml(indent=2) | indent(8) }} {{ metrics_server_extra_tolerations | list | to_nice_yaml(indent=2) | indent(8) }}
{% endif %} {%- endif %}
affinity: affinity:
podAntiAffinity: podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution: preferredDuringSchedulingIgnoredDuringExecution:
@ -105,10 +105,10 @@ spec:
topologyKey: kubernetes.io/hostname topologyKey: kubernetes.io/hostname
namespaces: namespaces:
- kube-system - kube-system
{% if metrics_server_extra_affinity is defined %} {% if metrics_server_extra_affinity %}
{{ metrics_server_extra_affinity | to_nice_yaml | indent(width=8) }} {{ metrics_server_extra_affinity | to_nice_yaml(indent=2) | indent(8) }}
{% endif %} {%- endif %}
{% if metrics_server_nodeselector is defined %} {% if metrics_server_nodeselector %}
nodeSelector: nodeSelector:
{{ metrics_server_nodeselector | to_nice_yaml | indent(width=8) }} {{ metrics_server_nodeselector | to_nice_yaml(indent=2) | indent(8) }}
{% endif %} {%- endif %}