Added playbook and role for k8s-ha-api
This commit is contained in:
15
ansible/roles/k8s-ha-api/vars/main.yml
Normal file
15
ansible/roles/k8s-ha-api/vars/main.yml
Normal file
@ -0,0 +1,15 @@
|
||||
---
|
||||
|
||||
pkg_list:
|
||||
- haproxy
|
||||
- keepalived
|
||||
|
||||
haproxy_bind_port: "8443"
|
||||
haproxy_backend_server:
|
||||
- { backend_name: "k8s-cr01", backend_ip: "192.168.111.191", backend_port: "6443"}
|
||||
- { backend_name: "k8s-cr02", backend_ip: "192.168.111.192", backend_port: "6443"}
|
||||
- { backend_name: "k8s-cr03", backend_ip: "192.168.111.193", backend_port: "6443"}
|
||||
|
||||
keepalived_vip: "192.168.111.100/24"
|
||||
keepalived_auth_pass: "1q2w3e4r"
|
||||
|
Reference in New Issue
Block a user