diff --git a/roles/download/defaults/main.yml b/roles/download/defaults/main.yml index 899e05d60..6fb957797 100644 --- a/roles/download/defaults/main.yml +++ b/roles/download/defaults/main.yml @@ -943,7 +943,7 @@ haproxy_image_tag: 2.4.9 # bundle with kubeadm; if not 'basic' upgrade can sometimes fail coredns_version: "{{ 'v1.8.6' if (kube_version is version('v1.23.0','>=')) else 'v1.8.0' }}" -coredns_image_is_namespaced: "{{ (kube_version is version('v1.21.0','>=')) or (coredns_version is version('v1.7.1','>=')) }}" +coredns_image_is_namespaced: "{{ (coredns_version is version('v1.7.1','>=')) }}" coredns_image_repo: "{{ kube_image_repo }}{{'/coredns/coredns' if (coredns_image_is_namespaced | bool) else '/coredns' }}" coredns_image_tag: "{{ coredns_version if (coredns_image_is_namespaced | bool) else (coredns_version | regex_replace('^v', '')) }}" diff --git a/roles/kubernetes/node/templates/kubelet-config.v1beta1.yaml.j2 b/roles/kubernetes/node/templates/kubelet-config.v1beta1.yaml.j2 index 1245e59af..56f6edc7d 100644 --- a/roles/kubernetes/node/templates/kubelet-config.v1beta1.yaml.j2 +++ b/roles/kubernetes/node/templates/kubelet-config.v1beta1.yaml.j2 @@ -109,10 +109,8 @@ tlsCipherSuites: {% if kubelet_event_record_qps %} eventRecordQPS: {{ kubelet_event_record_qps }} {% endif %} -{% if kube_version is version('v1.21.0', '>=') %} shutdownGracePeriod: {{ kubelet_shutdown_grace_period }} shutdownGracePeriodCriticalPods: {{ kubelet_shutdown_grace_period_critical_pods }} -{% endif %} {% if not kubelet_fail_swap_on|default(true) %} memorySwap: swapBehavior: {{ kubelet_swap_behavior|default("LimitedSwap") }}