-
Notifications
You must be signed in to change notification settings - Fork 0
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
0a184df
commit 6728378
Showing
7 changed files
with
69 additions
and
12 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 |
---|---|---|
@@ -1,2 +1,4 @@ | ||
.devcontainer | ||
.github | ||
.idea | ||
.vscode |
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,2 +1,3 @@ | ||
.vscode | ||
deploy | ||
deploy | ||
.idea |
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,35 @@ | ||
- name: always run | ||
hosts: add-kube-node | ||
any_errors_fatal: true | ||
gather_facts: yes | ||
roles: | ||
- role: prepare/yum-repository | ||
tags: | ||
- yum | ||
- role: chronyd | ||
tags: | ||
- chronyd | ||
- role: prepare/kernel | ||
tags: | ||
- kernel-upgrade | ||
- role: prepare/firewalld-manager | ||
- role: prepare/system-config | ||
- role: prepare/kernel-parameters | ||
tags: | ||
- update-kernel-parameters | ||
|
||
- name: containerd | ||
hosts: add-kube-node | ||
any_errors_fatal: true | ||
gather_facts: true | ||
roles: | ||
- role: containerd | ||
tags: hosts-containerd | ||
|
||
- name: kube-node | ||
hosts: add-kube-node | ||
any_errors_fatal: true | ||
gather_facts: true | ||
roles: | ||
- role: kube-node | ||
tags: hosts-kube-node |
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,14 @@ | ||
all: | ||
vars: | ||
ansible_port: 22 | ||
ansible_user: root | ||
# 保持不变 | ||
kube-master: | ||
hosts: | ||
172.18.156.109: {} | ||
172.18.156.96: {} | ||
172.18.156.57: {} | ||
# 添加新增的节点 ip | ||
add-kube-node: | ||
hosts: | ||
172.18.154.210: {} |
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
6 changes: 6 additions & 0 deletions
6
ansible/roles/prepare/yum-repository/templates/bsc-kernel.repo
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,6 @@ | ||
[bsc-kernel] | ||
name=ELRepo.org Community Enterprise Linux Repository - el7 | ||
baseurl=https://ss.bscstorage.com/bspackage/release/kernel/ | ||
enabled=1 | ||
gpgcheck=0 | ||
protect=0 |