mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2025-12-14 13:54:37 +03:00
Merge pull request #12165 from tico88612/fix/failing-test-coredns-autoscaler
Feat: add `dns_autoscaler_affinity` and remove in-place values
This commit is contained in:
@@ -65,6 +65,7 @@ dns_autoscaler_cpu_requests: 20m
|
|||||||
dns_autoscaler_memory_requests: 10Mi
|
dns_autoscaler_memory_requests: 10Mi
|
||||||
dns_autoscaler_deployment_nodeselector: "kubernetes.io/os: linux"
|
dns_autoscaler_deployment_nodeselector: "kubernetes.io/os: linux"
|
||||||
# dns_autoscaler_extra_tolerations: [{effect: NoSchedule, operator: "Exists"}]
|
# dns_autoscaler_extra_tolerations: [{effect: NoSchedule, operator: "Exists"}]
|
||||||
|
dns_autoscaler_affinity: {}
|
||||||
|
|
||||||
# etcd metrics
|
# etcd metrics
|
||||||
# etcd_metrics_service_labels:
|
# etcd_metrics_service_labels:
|
||||||
|
|||||||
@@ -48,21 +48,7 @@ spec:
|
|||||||
{{ dns_autoscaler_extra_tolerations | list | to_nice_yaml(indent=2) | indent(8) }}
|
{{ dns_autoscaler_extra_tolerations | list | to_nice_yaml(indent=2) | indent(8) }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
affinity:
|
affinity:
|
||||||
podAntiAffinity:
|
{{ dns_autoscaler_affinity | to_nice_yaml(indent=2) | indent(8) }}
|
||||||
requiredDuringSchedulingIgnoredDuringExecution:
|
|
||||||
- topologyKey: "kubernetes.io/hostname"
|
|
||||||
labelSelector:
|
|
||||||
matchLabels:
|
|
||||||
k8s-app: dns-autoscaler{{ coredns_ordinal_suffix }}
|
|
||||||
nodeAffinity:
|
|
||||||
preferredDuringSchedulingIgnoredDuringExecution:
|
|
||||||
- weight: 100
|
|
||||||
preference:
|
|
||||||
matchExpressions:
|
|
||||||
- key: node-role.kubernetes.io/control-plane
|
|
||||||
operator: In
|
|
||||||
values:
|
|
||||||
- ""
|
|
||||||
containers:
|
containers:
|
||||||
- name: autoscaler
|
- name: autoscaler
|
||||||
image: "{{ dnsautoscaler_image_repo }}:{{ dnsautoscaler_image_tag }}"
|
image: "{{ dnsautoscaler_image_repo }}:{{ dnsautoscaler_image_tag }}"
|
||||||
|
|||||||
@@ -11,6 +11,9 @@ auto_renew_certificates: true
|
|||||||
kube_proxy_mode: iptables
|
kube_proxy_mode: iptables
|
||||||
enable_nodelocaldns: false
|
enable_nodelocaldns: false
|
||||||
|
|
||||||
|
# Single node don't need the DNS autoscaler
|
||||||
|
enable_dns_autoscaler: false
|
||||||
|
|
||||||
containerd_registries_mirrors:
|
containerd_registries_mirrors:
|
||||||
- prefix: docker.io
|
- prefix: docker.io
|
||||||
mirrors:
|
mirrors:
|
||||||
|
|||||||
Reference in New Issue
Block a user