Skip to content
Snippets Groups Projects
Unverified Commit 9b7d2857 authored by ChengHao Yang's avatar ChengHao Yang
Browse files

Feat: add kubeadm_config_api_version default variable


If kube_version is v1.31 or higher, it will be v1beta4, otherwise it
will be v1beta3.

Signed-off-by: default avatarChengHao Yang <17496418+tico88612@users.noreply.github.com>
parent a469c1c9
No related branches found
No related tags found
No related merge requests found
......@@ -26,6 +26,10 @@ kube_version_min_required: v1.29.0
## Kube Proxy mode One of ['iptables', 'ipvs']
kube_proxy_mode: ipvs
# Kubeadm config api version
# If kube_version is v1.31 or higher, it will be v1beta4, otherwise it will be v1beta3.
kubeadm_config_api_version: "{{ 'v1beta4' if kube_version is version('v1.31.0', '>=') else 'v1beta3' }}"
## The timeout for init first control-plane
kubeadm_init_timeout: 300s
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment