forked from wuhu-k8s/ansible-install-k8s
-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
232fdec
commit 6f3376f
Showing
56 changed files
with
628 additions
and
403 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
playbooks/ssl | ||
roles/master/files/etcd_cert | ||
roles/master/files/k8s_cert | ||
roles/node/files/k8s_cert | ||
roles/etcd/files/etcd_cert |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,15 @@ | ||
[defaults] | ||
inventory = /hosts | ||
forks = 5 | ||
become = root | ||
remote_port = 22 | ||
host_key_checking = False | ||
timeout = 10 | ||
log_path = /var/log/ansible.log | ||
private_key_file = /root/.ssh/id_rsa | ||
force_valid_group_names = ignore | ||
inventory = ./inventory | ||
roles_path = ./roles | ||
forks = 20 | ||
deprecation_warnings = False | ||
display_skipped_hosts = False | ||
become = root | ||
sudo_user = root | ||
command_warnings = False | ||
remote_port = 22 | ||
host_key_checking = False | ||
timeout = 10 | ||
log_path = /var/log/ansible.log | ||
private_key_file = ~/.ssh/id_rsa |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
[master] | ||
# 如果部署单Master,只保留一个Master节点 | ||
# 默认Naster节点也部署Node组件 | ||
192.168.31.81 node_name=k8s-master-01 | ||
192.168.31.80 node_name=k8s-master-02 | ||
|
||
[node] | ||
192.168.31.82 node_name=k8s-node-01 | ||
192.168.31.83 node_name=k8s-node-02 | ||
192.168.31.84 node_name=k8s-node-03 | ||
|
||
[etcd] | ||
192.168.31.80 etcd_name=etcd-2 | ||
192.168.31.81 etcd_name=etcd-1 | ||
192.168.31.82 etcd_name=etcd-3 | ||
192.168.31.83 etcd_name=etcd-4 | ||
192.168.31.84 etcd_name=etcd-5 | ||
|
||
[lb] | ||
# 如果部署单Master,该项忽略 | ||
192.168.31.81 lb_name=lb-master | ||
192.168.31.80 lb_name=lb-backup | ||
|
||
[k8s:children] | ||
master | ||
node | ||
|
||
[newnode] | ||
#192.168.31.85 node_name=k8s-node-04 |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../group_vars |
13 changes: 3 additions & 10 deletions
13
multi-master-deploy.yml → playbooks/multi-master-deploy.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../roles |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.