blob: f7fbce8c7514c0b50e9bcd7ff452ff62751642e1 [file] [log] [blame]
Victor Ryzhenkin64cb5d02018-06-04 17:49:10 +04001applications:
2- keepalived
3classes:
4- service.keepalived.support
5parameters:
6 _param:
7 keepalived_vip_priority: 101
8 keepalived_kube_apiserver_vrrp_script_content: "pidof haproxy && systemctl status kube-apiserver.service --quiet --no-pager"
Victor Ryzhenkin7c8c4c62018-06-15 05:56:44 +04009 keepalived_k8s_apiserver_vip_interface: ens3
10 keepalived_k8s_apiserver_vip_address: ${_param:kubernetes_control_address}
11 keepalived_k8s_apiserver_vip_password: password
Victor Ryzhenkin64cb5d02018-06-04 17:49:10 +040012 keepalived:
13 cluster:
14 vrrp_scripts:
15 k8s_vip:
16 content: ${_param:keepalived_kube_apiserver_vrrp_script_content}
17 interval: 10
18 rise: 1
19 fall: 1
20 enabled: true
21 instance:
22 kube_apiserver_vip:
23 address: ${_param:keepalived_k8s_apiserver_vip_address}
24 password: ${_param:keepalived_k8s_apiserver_vip_password}
25 interface: ${_param:keepalived_k8s_apiserver_vip_interface}
26 virtual_router_id: 60
27 priority: ${_param:keepalived_vip_priority}
28 track_script: k8s_vip