1 Star 0 Fork 13

肖运杰/k8s 高可用集群 ansible 剧本部署

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
keepalived_haproxy_roles_deploy.yaml 908 Bytes
一键复制 编辑 原始数据 按行查看 历史
山河已无恙 提交于 2023-02-05 23:52 . init
---
- hosts: 192.168.26.100
vars:
keep_role: MASTER
virtual_ipaddress: "192.168.26.99"
APISERVER_DEST_PORT: 30033
roles:
- role: keepalived
- hosts: 192.168.26.101
vars:
keep_role: BACKUP
virtual_ipaddress: "192.168.26.99"
APISERVER_DEST_PORT: 30033
roles:
- role: keepalived
- hosts: 192.168.26.102
vars:
keep_role: BACKUP
virtual_ipaddress: "192.168.26.99"
APISERVER_DEST_PORT: 30033
roles:
- role: keepalived
- name: Ensure HAProxy is deployed
hosts: k8s_master
roles:
- role: role-haproxy18
haproxy_port: 30033
haproxy_appservers:
- name: vms101.liruilongs.github.io
ip: 192.168.26.101
backend_port: 6443
- name: vms102.liruilongs.github.io
ip: 192.168.29.102
backend_port: 6443
- name: vms100.liruilongs.github.io
ip: 192.168.26.100
backend_port: 6443
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/browser_hot/k8s_deploy_ansible.git
git@gitee.com:browser_hot/k8s_deploy_ansible.git
browser_hot
k8s_deploy_ansible
k8s 高可用集群 ansible 剧本部署
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385