更新example hosts

pull/465/head
gjmzj 2019-02-15 09:36:08 +08:00
parent a417e84802
commit 98e6623d10
8 changed files with 67 additions and 59 deletions

View File

@ -7,21 +7,23 @@
[etcd]
192.168.1.1 NODE_NAME=etcd1
[new-etcd] # 预留组后续添加etcd节点使用
#192.168.1.x NODE_NAME=etcdx
[kube-master]
192.168.1.1
[kube-node]
192.168.1.1
[new-node] # 预留组后续添加node节点使用
#192.168.1.xx
# 参数 NEW_INSTALLyes表示新建no表示使用已有harbor服务器
# 如果不使用域名,可以设置 HARBOR_DOMAIN=""
[harbor]
#192.168.1.8 HARBOR_DOMAIN="harbor.yourdomain.com" NEW_INSTALL=no
# 预留组后续添加node节点使用
[new-node]
#192.168.1.xx
# 【可选】外部负载均衡,用于自有环境负载转发 NodePort 暴露的服务等
[ex-lb]
#192.168.1.6 LB_ROLE=backup EX_VIP=192.168.1.250

View File

@ -8,21 +8,23 @@
[etcd]
192.168.1.1 NODE_NAME=etcd1
[new-etcd] # group reserved, add new 'etcd-node' in it
#192.168.1.x NODE_NAME=etcdx
[kube-master]
192.168.1.1
[kube-node]
192.168.1.1
[new-node] # group reserved, add new 'kube-node' in it
#192.168.1.xx
# set 'NEW_INSTALL': 'yes' to install a harbor server; 'no' to integrate with existed one
# if not using domianset 'HARBOR_DOMAIN=""'
[harbor]
#192.168.1.8 HARBOR_DOMAIN="harbor.yourdomain.com" NEW_INSTALL=no
# group reserved, add new 'kube-node' in it
[new-node]
#192.168.1.xx
# [optional] loadbalance for services with type 'NodePort'
[ex-lb]
#192.168.1.6 LB_ROLE=backup EX_VIP=192.168.1.250

View File

@ -9,30 +9,28 @@
192.168.1.2 NODE_NAME=etcd2
192.168.1.3 NODE_NAME=etcd3
[new-etcd] # 预留组后续添加etcd节点使用
#192.168.1.x NODE_NAME=etcdx
[kube-master]
192.168.1.2
192.168.1.3
# 公有云上一般都有提供负载均衡产品且不允许自己创建lb 节点留空,仅保留组名
[lb]
[new-master] # 预留组后续添加master节点使用
#192.168.1.5
[kube-node]
192.168.1.1
192.168.1.4
[new-node] # 预留组后续添加node节点使用
#192.168.1.xx
# 参数 NEW_INSTALLyes表示新建no表示使用已有harbor服务器
# 如果不使用域名,可以设置 HARBOR_DOMAIN=""
[harbor]
#192.168.1.8 HARBOR_DOMAIN="harbor.yourdomain.com" NEW_INSTALL=no
# 预留组后续添加master节点使用
[new-master]
#192.168.1.5
# 预留组后续添加node节点使用
[new-node]
#192.168.1.xx
[all:vars]
# ---------集群主要参数---------------
#集群部署模式allinone, single-master, multi-master
@ -41,7 +39,8 @@ DEPLOY_MODE=multi-master
#集群主版本号,目前支持: v1.8, v1.9, v1.10v1.11, v1.12, v1.13
K8S_VER="v1.10"
# 创建内网云负载均衡,然后配置:前端监听 tcp 8443后端 tcp 6443后端节点即 master 节点
# 公有云上一般都有提供负载均衡产品且不允许自己创建lb
# 创建公有云内网负载均衡,然后配置:前端监听 tcp 8443后端 tcp 6443后端节点即 master 节点
MASTER_IP="192.168.1.10" # 即负载均衡内网地址
KUBE_APISERVER="https://{{ MASTER_IP }}:8443"

View File

@ -10,30 +10,28 @@
192.168.1.2 NODE_NAME=etcd2
192.168.1.3 NODE_NAME=etcd3
[new-etcd] # group reserved, add new 'etcd-node' in it
#192.168.1.x NODE_NAME=etcdx
[kube-master]
192.168.1.2
192.168.1.3
# use loadballance service by the Cloud Providor, no 'lb' nodes needed
[lb]
[new-master] # group reserved, add new 'kube-master' in it
#192.168.1.5
[kube-node]
192.168.1.1
192.168.1.4
[new-node] # group reserved, add new 'kube-node' in it
#192.168.1.xx
# set 'NEW_INSTALL': 'yes' to install a harbor server; 'no' to integrate with existed one
# if not using domianset 'HARBOR_DOMAIN=""'
[harbor]
#192.168.1.8 HARBOR_DOMAIN="harbor.yourdomain.com" NEW_INSTALL=no
# group reserved, add new 'kube-master' in it
[new-master]
#192.168.1.5
# group reserved, add new 'kube-node' in it
[new-node]
#192.168.1.xx
[all:vars]
# --------- Main Variables ---------------
# Cluster Deployment Mode: allinone, single-master, multi-master
@ -42,6 +40,7 @@ DEPLOY_MODE=multi-master
# Versions supported: v1.8, v1.9, v1.10, v1.11, v1.12, v1.13
K8S_VER="v1.10"
# use loadballance service by the Cloud Providor, no 'lb' nodes needed
# cloud loadballance service: listen on tcp 8443, with kube-masters(apiservers) as backend servers
MASTER_IP="192.168.1.10"
KUBE_APISERVER="https://{{ MASTER_IP }}:8443"

View File

@ -9,31 +9,32 @@
192.168.1.2 NODE_NAME=etcd2
192.168.1.3 NODE_NAME=etcd3
[new-etcd] # 预留组后续添加etcd节点使用
#192.168.1.x NODE_NAME=etcdx
[kube-master]
192.168.1.1
192.168.1.2
# 负载均衡(目前已支持多于2节点一般2节点就够了) 安装 haproxy+keepalived
[lb]
192.168.1.1 LB_ROLE=backup
192.168.1.2 LB_ROLE=master
[new-master] # 预留组后续添加master节点使用
#192.168.1.5
[kube-node]
192.168.1.3
192.168.1.4
[new-node] # 预留组后续添加node节点使用
#192.168.1.xx
# 参数 NEW_INSTALLyes表示新建no表示使用已有harbor服务器
# 如果不使用域名,可以设置 HARBOR_DOMAIN=""
[harbor]
#192.168.1.8 HARBOR_DOMAIN="harbor.yourdomain.com" NEW_INSTALL=no
# 预留组后续添加master节点使用
[new-master]
#192.168.1.5
# 预留组后续添加node节点使用
[new-node]
#192.168.1.xx
# 负载均衡(目前已支持多于2节点一般2节点就够了) 安装 haproxy+keepalived
[lb]
192.168.1.1 LB_ROLE=backup
192.168.1.2 LB_ROLE=master
#【可选】外部负载均衡,用于自有环境负载转发 NodePort 暴露的服务等
[ex-lb]

View File

@ -10,31 +10,32 @@
192.168.1.2 NODE_NAME=etcd2
192.168.1.3 NODE_NAME=etcd3
[new-etcd] # group reserved, add new 'etcd-node' in it
#192.168.1.x NODE_NAME=etcdx
[kube-master]
192.168.1.1
192.168.1.2
# 'loadbalance' node, with 'haproxy+keepalived' installed
[lb]
192.168.1.1 LB_ROLE=backup
192.168.1.2 LB_ROLE=master
[new-master] # group reserved, add new 'kube-master' in it
#192.168.1.5
[kube-node]
192.168.1.3
192.168.1.4
[new-node] # group reserved, add new 'kube-node' in it
#192.168.1.xx
# set 'NEW_INSTALL': 'yes' to install a harbor server; 'no' to integrate with existed one
# if not using domianset 'HARBOR_DOMAIN=""'
[harbor]
#192.168.1.8 HARBOR_DOMAIN="harbor.yourdomain.com" NEW_INSTALL=no
# group reserved, add new 'kube-master' in it
[new-master]
#192.168.1.5
# group reserved, add new 'kube-node' in it
[new-node]
#192.168.1.xx
# 'loadbalance' node, with 'haproxy+keepalived' installed
[lb]
192.168.1.1 LB_ROLE=backup
192.168.1.2 LB_ROLE=master
# [optional] loadbalance for services with type 'NodePort'
[ex-lb]

View File

@ -7,6 +7,9 @@
[etcd]
192.168.1.1 NODE_NAME=etcd1
[new-etcd] # 预留组后续添加etcd节点使用
#192.168.1.x NODE_NAME=etcdx
[kube-master]
192.168.1.1
@ -14,15 +17,14 @@
192.168.1.2
192.168.1.3
[new-node] # 预留组后续添加node节点使用
#192.168.1.xx
# 参数 NEW_INSTALLyes表示新建no表示使用已有harbor服务器
# 如果不使用域名,可以设置 HARBOR_DOMAIN=""
[harbor]
#192.168.1.8 HARBOR_DOMAIN="harbor.yourdomain.com" NEW_INSTALL=no
# 预留组后续添加node节点使用
[new-node]
#192.168.1.xx
#【可选】外部负载均衡,用于自有环境负载转发 NodePort 暴露的服务等
[ex-lb]
#192.168.1.6 LB_ROLE=backup EX_VIP=192.168.1.250

View File

@ -8,6 +8,9 @@
[etcd]
192.168.1.1 NODE_NAME=etcd1
[new-etcd] # group reserved, add new 'etcd-node' in it
#192.168.1.x NODE_NAME=etcdx
[kube-master]
192.168.1.1
@ -15,15 +18,14 @@
192.168.1.2
192.168.1.3
[new-node] # group reserved, add new 'kube-node' in it
#192.168.1.xx
# set 'NEW_INSTALL': 'yes' to install a harbor server; 'no' to integrate with existed one
# if not using domianset 'HARBOR_DOMAIN=""'
[harbor]
#192.168.1.8 HARBOR_DOMAIN="harbor.yourdomain.com" NEW_INSTALL=no
# group reserved, add new 'kube-node' in it
[new-node]
#192.168.1.xx
# [optional] loadbalance for services with type 'NodePort'
[ex-lb]
#192.168.1.6 LB_ROLE=backup EX_VIP=192.168.1.250