haproxy_update
This commit is contained in:
parent
d002871584
commit
bc355b4faf
@ -10,7 +10,20 @@ users:
|
||||
haproxy_local_config_path: "reverse-proxy/haproxy.cfg.j2"
|
||||
haproxy_list_tls:
|
||||
- wildcard.felcloud.io
|
||||
lb_local_config_path: "reverse-proxy/lb.cfg.j2"
|
||||
haproxy_nbproc: 1
|
||||
haproxy_first_tls: "/etc/haproxy/tls/wildcard.felcloud.io.pem"
|
||||
|
||||
haproxy:
|
||||
frontends:
|
||||
- mode: tcp
|
||||
backends:
|
||||
- name: "{{ k8s_backend_name }}"
|
||||
frontend: "{{ k8s_frontend_name }}"
|
||||
mode: tcp
|
||||
servers:
|
||||
- "server {{ groups[group][0] }} {{ hostvars[groups[group][0]].ansible_host }}:80 check"
|
||||
- "server {{ groups[group][1] }} {{ hostvars[groups[group][1]].ansible_host }}:80 check"
|
||||
- "server {{ groups[group][2] }} {{ hostvars[groups[group][2]].ansible_host }}:80 check"
|
||||
|
||||
|
||||
#vars
|
||||
|
6
host_vars/haproxy.yml
Normal file
6
host_vars/haproxy.yml
Normal file
@ -0,0 +1,6 @@
|
||||
---
|
||||
k8s_backend_name: k8s_master_lb
|
||||
k8s_frontend_name: k8s_master_lb
|
||||
backend_servers: "{{ k8s_master_groupname }}"
|
||||
group: "{{ k8s_master_groupname }}"
|
||||
|
10
host_vars/lb1.yml
Normal file
10
host_vars/lb1.yml
Normal file
@ -0,0 +1,10 @@
|
||||
---
|
||||
k8s_backend_name: k8s_worker_lb
|
||||
k8s_frontend_name: k8s_worker_lb
|
||||
backend_servers: "{{ k8s_worker_groupname }}"
|
||||
group: "{{ k8s_worker_groupname }}"
|
||||
|
||||
# BEGIN ANSIBLE MANAGED BLOCK
|
||||
public_vip_address:
|
||||
- 38.108.68.241
|
||||
# END ANSIBLE MANAGED BLOCK
|
Loading…
Reference in New Issue
Block a user