diff --git a/roles/download/templates/kubeadm-images.yaml.j2 b/roles/download/templates/kubeadm-images.yaml.j2 index 2e0d9ef6115f4fe3f1d4b8393d21412228b02f05..1ec05054a9be5c909abf818d6f3b2491ac58b0c7 100644 --- a/roles/download/templates/kubeadm-images.yaml.j2 +++ b/roles/download/templates/kubeadm-images.yaml.j2 @@ -1,5 +1,9 @@ {% if kube_version is version('v1.12.0', '>=') %} +{% if kube_version is version('v1.12.0', '>=') and kube_version is version('v1.13.0', '<') %} +apiVersion: kubeadm.k8s.io/v1alpha3 +{% else %} apiVersion: kubeadm.k8s.io/v1beta1 +{% endif %} kind: InitConfiguration nodeRegistration: {% if container_manager == 'crio' %}