Victor Ryzhenkin | 64cb5d0 | 2018-06-04 17:49:10 +0400 | [diff] [blame] | 1 | applications: |
| 2 | - keepalived |
| 3 | classes: |
| 4 | - service.keepalived.support |
| 5 | parameters: |
| 6 | _param: |
| 7 | keepalived_vip_priority: 101 |
| 8 | keepalived_kube_apiserver_vrrp_script_content: "pidof haproxy && systemctl status kube-apiserver.service --quiet --no-pager" |
| 9 | keepalived: |
| 10 | cluster: |
| 11 | vrrp_scripts: |
| 12 | k8s_vip: |
| 13 | content: ${_param:keepalived_kube_apiserver_vrrp_script_content} |
| 14 | interval: 10 |
| 15 | rise: 1 |
| 16 | fall: 1 |
| 17 | enabled: true |
| 18 | instance: |
| 19 | kube_apiserver_vip: |
| 20 | address: ${_param:keepalived_k8s_apiserver_vip_address} |
| 21 | password: ${_param:keepalived_k8s_apiserver_vip_password} |
| 22 | interface: ${_param:keepalived_k8s_apiserver_vip_interface} |
| 23 | virtual_router_id: 60 |
| 24 | priority: ${_param:keepalived_vip_priority} |
| 25 | track_script: k8s_vip |