Added fix for keepalived on kdt nodes
Prod related: PROD-27743 (PROD:27743)
Change-Id: Ia2c5a9d12b3d19d8b8f9e0bcb0007f1a6f063b31
diff --git a/keepalived/cluster/instance/kdt_kube_api_server_vip.yml b/keepalived/cluster/instance/kdt_kube_api_server_vip.yml
new file mode 100644
index 0000000..a26748a
--- /dev/null
+++ b/keepalived/cluster/instance/kdt_kube_api_server_vip.yml
@@ -0,0 +1,28 @@
+applications:
+- keepalived
+classes:
+- service.keepalived.support
+parameters:
+ _param:
+ keepalived_vip_priority: 101
+ keepalived_kdt_kube_apiserver_vrrp_script_content: "pidof haproxy && systemctl status kube-apiserver.service --quiet --no-pager"
+ keepalived_kdt_k8s_apiserver_vip_interface: ens3
+ keepalived_kdt_k8s_apiserver_vip_address: ${_param:kdt_control_address}
+ keepalived_kdt_k8s_apiserver_vip_password: password
+ keepalived:
+ cluster:
+ vrrp_scripts:
+ kdt_vip:
+ content: ${_param:keepalived_kdt_kube_apiserver_vrrp_script_content}
+ interval: 10
+ rise: 1
+ fall: 1
+ enabled: true
+ instance:
+ kdt_kube_apiserver_vip:
+ address: ${_param:keepalived_kdt_k8s_apiserver_vip_address}
+ password: ${_param:keepalived_kdt_k8s_apiserver_vip_password}
+ interface: ${_param:keepalived_kdt_k8s_apiserver_vip_interface}
+ virtual_router_id: 70
+ priority: ${_param:keepalived_vip_priority}
+ track_script: kdt_vip