From 32cb21a7fc8a319881f607101490094fe078adba Mon Sep 17 00:00:00 2001 From: Qasim Mehmood <18313886+ThisIsQasim@users.noreply.github.com> Date: Wed, 13 Sep 2023 04:58:58 +0500 Subject: [PATCH] Use correct env var name for kube-vip per service leader election --- .../node/templates/manifests/kube-vip.manifest.j2 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/roles/kubernetes/node/templates/manifests/kube-vip.manifest.j2 b/roles/kubernetes/node/templates/manifests/kube-vip.manifest.j2 index 0daf820982a..b95b4746967 100644 --- a/roles/kubernetes/node/templates/manifests/kube-vip.manifest.j2 +++ b/roles/kubernetes/node/templates/manifests/kube-vip.manifest.j2 @@ -40,6 +40,10 @@ spec: - name: svc_enable value: "true" {% endif %} +{% if kube_vip_enableServicesElection %} + - name: svc_election + value: "true" +{% endif %} {% if kube_vip_leader_election_enabled %} - name: vip_leaderelection value: "true" @@ -70,10 +74,6 @@ spec: {% endif %} - name: address value: {{ kube_vip_address | to_json }} -{% if kube_vip_enableServicesElection %} - - name: enableServicesElection - value: "true" -{% endif %} {% if kube_vip_lb_enable %} - name: lb_enable value: "true"