add ability to specify default LB when using ipvs

This commit is contained in:
2024-12-21 15:33:15 +03:00
parent e2dabc8728
commit 46e057e41b
4 changed files with 10 additions and 3 deletions

View File

@@ -122,7 +122,8 @@ kube_apiserver_port: 6443 # (https)
# Kube-proxy proxyMode configuration.
# Can be ipvs, iptables
kube_proxy_mode: ipvs
kube_proxy_mode: {{ .Orchestrator.ProxyMode }}
kube_proxy_scheduler: {{ .Orchestrator.ProxyScheduler }}
# configure arp_ignore and arp_announce to avoid answering ARP queries from kube-ipvs0 interface
# must be set to true for MetalLB, kube-vip(ARP enabled) to work
@@ -452,6 +453,8 @@ kubeadm_patches:
source_dir: {{ `"{{ inventory_dir }}/patches"` }}
dest_dir: {{ `"{{ kube_config_dir }}/patches"` }}
{{- if not (eq .Orchestrator.KubeletDir "/var/lib/kubelet") }}
## Kubelet additional settings
kubelet_custom_flags:
- "--root-dir={{ .Orchestrator.KubeletDir }}"
{{- end }}