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" |
Victor Ryzhenkin | 7c8c4c6 | 2018-06-15 05:56:44 +0400 | [diff] [blame] | 9 | keepalived_k8s_apiserver_vip_interface: ens3 |
| 10 | keepalived_k8s_apiserver_vip_address: ${_param:kubernetes_control_address} |
| 11 | keepalived_k8s_apiserver_vip_password: password |
Victor Ryzhenkin | 64cb5d0 | 2018-06-04 17:49:10 +0400 | [diff] [blame] | 12 | 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 |