mirror of https://github.com/easzlab/kubeasz.git
清理kube-master组定义
parent
c3af702c7b
commit
ed70790461
|
@ -5,7 +5,8 @@
|
|||
|
||||
# 集群节点的公共配置任务
|
||||
- hosts:
|
||||
- kube-cluster
|
||||
- kube-master
|
||||
- kube-node
|
||||
- deploy
|
||||
- etcd
|
||||
- lb
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
- hosts:
|
||||
- kube-cluster
|
||||
- kube-master
|
||||
- kube-node
|
||||
- deploy
|
||||
roles:
|
||||
- kubectl
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
- hosts: kube-cluster
|
||||
#gather_facts: True
|
||||
- hosts:
|
||||
- kube-master
|
||||
- kube-node
|
||||
roles:
|
||||
- docker
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
- hosts: kube-cluster
|
||||
- hosts:
|
||||
- kube-master
|
||||
- kube-node
|
||||
roles:
|
||||
- { role: calico, when: "CLUSTER_NETWORK == 'calico'" }
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
- hosts: kube-cluster
|
||||
- hosts:
|
||||
- kube-master
|
||||
- kube-node
|
||||
roles:
|
||||
- { role: flannel, when: "CLUSTER_NETWORK == 'flannel'" }
|
||||
|
|
14
90.setup.yml
14
90.setup.yml
|
@ -6,7 +6,8 @@
|
|||
|
||||
# 集群节点的公共配置任务
|
||||
- hosts:
|
||||
- kube-cluster
|
||||
- kube-master
|
||||
- kube-node
|
||||
- deploy
|
||||
- etcd
|
||||
- lb
|
||||
|
@ -25,13 +26,16 @@
|
|||
|
||||
# kubectl 客户端配置
|
||||
- hosts:
|
||||
- kube-cluster
|
||||
- kube-master
|
||||
- kube-node
|
||||
- deploy
|
||||
roles:
|
||||
- kubectl
|
||||
|
||||
# docker服务安装
|
||||
- hosts: kube-cluster
|
||||
- hosts:
|
||||
- kube-master
|
||||
- kube-node
|
||||
roles:
|
||||
- docker
|
||||
|
||||
|
@ -46,7 +50,9 @@
|
|||
- kube-node
|
||||
|
||||
# 集群网络插件部署,只能选择一种安装
|
||||
- hosts: kube-cluster
|
||||
- hosts:
|
||||
- kube-master
|
||||
- kube-node
|
||||
roles:
|
||||
- { role: calico, when: "CLUSTER_NETWORK == 'calico'" }
|
||||
- { role: flannel, when: "CLUSTER_NETWORK == 'flannel'" }
|
||||
|
|
17
99.clean.yml
17
99.clean.yml
|
@ -39,9 +39,9 @@
|
|||
- "/etc/kubernetes/"
|
||||
|
||||
- hosts:
|
||||
- kube-cluster
|
||||
- kube-master
|
||||
- kube-node
|
||||
- new-node
|
||||
- deploy
|
||||
tasks:
|
||||
- name: stop docker service
|
||||
shell: "systemctl stop docker"
|
||||
|
@ -116,3 +116,16 @@
|
|||
- "/etc/keepalived"
|
||||
ignore_errors: true
|
||||
|
||||
- hosts:
|
||||
- kube-master
|
||||
- kube-node
|
||||
- new-node
|
||||
- deploy
|
||||
- etcd
|
||||
- lb
|
||||
task:
|
||||
- name: 清理证书目录和文件
|
||||
file: name={{ item }} state=absent
|
||||
with_items:
|
||||
- "{{ ca_dir }}"
|
||||
|
||||
|
|
|
@ -12,10 +12,6 @@
|
|||
[kube-node]
|
||||
192.168.1.1 NODE_ID=node1 NODE_IP="192.168.1.1"
|
||||
|
||||
[kube-cluster:children]
|
||||
kube-node
|
||||
kube-master
|
||||
|
||||
# 如果启用harbor,请配置后面harbor相关参数
|
||||
[harbor]
|
||||
#192.168.1.8 NODE_IP="192.168.1.8"
|
||||
|
|
|
@ -20,7 +20,6 @@
|
|||
[lb:vars]
|
||||
LB_EP1="192.168.1.1:6443" # api-server 实际成员地址端口
|
||||
LB_EP2="192.168.1.2:6443" # api-server 实际成员地址端口
|
||||
MASTER_IP="192.168.1.10" # api-server 虚地址
|
||||
MASTER_PORT="8443" # api-server 服务端口
|
||||
|
||||
[kube-node]
|
||||
|
@ -28,10 +27,6 @@ MASTER_PORT="8443" # api-server 服务端口
|
|||
192.168.1.3 NODE_ID=node2 NODE_IP="192.168.1.3"
|
||||
192.168.1.4 NODE_ID=node3 NODE_IP="192.168.1.4"
|
||||
|
||||
[kube-cluster:children]
|
||||
kube-node
|
||||
kube-master
|
||||
|
||||
# 如果启用harbor,请配置后面harbor相关参数
|
||||
[harbor]
|
||||
#192.168.1.8 NODE_IP="192.168.1.8"
|
||||
|
|
|
@ -16,10 +16,6 @@
|
|||
192.168.1.2 NODE_ID=node2 NODE_IP="192.168.1.2"
|
||||
192.168.1.3 NODE_ID=node3 NODE_IP="192.168.1.3"
|
||||
|
||||
[kube-cluster:children]
|
||||
kube-node
|
||||
kube-master
|
||||
|
||||
# 如果启用harbor,请配置后面harbor相关参数
|
||||
[harbor]
|
||||
#192.168.1.8 NODE_IP="192.168.1.8"
|
||||
|
|
Loading…
Reference in New Issue