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} |
Victor Ryzhenkin | 64cb5d0 | 2018-06-04 17:49:10 +0400 | [diff] [blame] | 11 | keepalived: |
| 12 | cluster: |
| 13 | vrrp_scripts: |
| 14 | k8s_vip: |
| 15 | content: ${_param:keepalived_kube_apiserver_vrrp_script_content} |
| 16 | interval: 10 |
| 17 | rise: 1 |
| 18 | fall: 1 |
| 19 | enabled: true |
| 20 | instance: |
| 21 | kube_apiserver_vip: |
| 22 | address: ${_param:keepalived_k8s_apiserver_vip_address} |
| 23 | password: ${_param:keepalived_k8s_apiserver_vip_password} |
| 24 | interface: ${_param:keepalived_k8s_apiserver_vip_interface} |
| 25 | virtual_router_id: 60 |
| 26 | priority: ${_param:keepalived_vip_priority} |
Alexandr Lovtsov | 4e3d154 | 2019-04-16 13:32:30 +0300 | [diff] [blame] | 27 | track_script: k8s_vip |