频道栏目
首页 > 网络 > 其他 > 正文

世界杯外围投注官网

2018-11-30 10:28:16           
收藏   我要投稿

安装案例:系统:Centos可以多台Master(Master不能低于3台)多台Node此案例使用三台Master两台Node,世界杯体育投注平台名root,密码均为123456

master  192.168.20.183
master  192.168.20.96
master  192.168.20.171
node    192.168.20.172
node    192.168.20.54

安装Master集群下载项目:

git clone https://github.com/zdwork/k8s-install.git
cd k8s-install

修改 conf/master-install.conf内容如下:

世界杯外围投注官网!/bin/bash
世界杯外围投注官网User-defined information
export node=3 世界杯外围投注官网集群数量
export node_ip="192.168.20.183 192.168.20.96 192.168.20.171" 世界杯外围投注官网服务器的ip,以空格分割
export node_name="master-01 master-02 master-03" 世界杯外围投注官网主机名 自定义,以空格分割
export node_pass="123456 123456 123456" 世界杯外围投注官网每台服务器的root密码,以空格分割
export apiserver_vip="192.168.20.240"世界杯外围投注官网高可用IP 注意此ip要没有被占用
export apiserver_vip_port="4443"
export flaneld_interface="ens33" 世界杯外围投注官网你的网卡
export vip_interface="ens33" 世界杯外围投注官网你的网卡
export haproxy_name="admin"
export haproxy_pass="123456"
export haproxy_status_port="8000"

安装:

./install.shk8s一键安装脚本(二进制)

脚本执行完后会打打印出如下信息:

 ---------------- etcd --------------------------------
192.168.20.183::master-01
   Active: active (running) since 三 2018-11-28 16:03:46 CST; 1h 44min ago
192.168.20.96::master-02
   Active: active (running) since 三 2018-11-28 16:03:47 CST; 1h 44min ago
192.168.20.171::master-03
   Active: active (running) since 三 2018-11-28 16:04:07 CST; 1h 43min ago
 ---------------- kube-apiserver -----------------------
192.168.20.183::master-01
   Active: active (running) since 三 2018-11-28 16:07:07 CST; 1h 40min ago
192.168.20.96::master-02
   Active: active (running) since 三 2018-11-28 16:07:20 CST; 1h 40min ago
192.168.20.171::master-03
   Active: active (running) since 三 2018-11-28 16:07:32 CST; 1h 40min ago
 ---------------- kube-scheduler ------------------------
192.168.20.183::master-01
   Active: active (running) since 三 2018-11-28 16:08:26 CST; 1h 39min ago
192.168.20.96::master-02
   Active: active (running) since 三 2018-11-28 16:08:26 CST; 1h 39min ago
192.168.20.171::master-03
   Active: active (running) since 三 2018-11-28 16:08:26 CST; 1h 39min ago
 ---------------- kube-controller_manager ----------------
192.168.20.183::master-01
   Active: active (running) since 三 2018-11-28 16:07:59 CST; 1h 40min ago
192.168.20.96::master-02
   Active: active (running) since 三 2018-11-28 16:09:08 CST; 1h 38min ago
192.168.20.171::master-03
   Active: active (running) since 三 2018-11-28 16:08:02 CST; 1h 40min ago
 ---------------- keepalived ------------------------------
192.168.20.183::master-01
   Active: active (running) since 三 2018-11-28 16:06:31 CST; 1h 41min ago
192.168.20.96::master-02
   Active: active (running) since 三 2018-11-28 16:06:33 CST; 1h 41min ago
192.168.20.171::master-03
   Active: active (running) since 三 2018-11-28 16:06:34 CST; 1h 41min ago
 ---------------- haproxy ---------------------------------
192.168.20.183::master-01
   Active: active (running) since 三 2018-11-28 16:05:03 CST; 1h 43min ago
192.168.20.96::master-02
   Active: active (running) since 三 2018-11-28 16:05:20 CST; 1h 42min ago
192.168.20.171::master-03
   Active: active (running) since 三 2018-11-28 16:05:34 CST; 1h 42min ago
 ---------------- flanneld --------------------------------
192.168.20.183::master-01
   Active: active (running) since 三 2018-11-28 16:04:39 CST; 1h 43min ago
192.168.20.96::master-02
   Active: active (running) since 三 2018-11-28 16:04:41 CST; 1h 43min ago
192.168.20.171::master-03
   Active: active (running) since 三 2018-11-28 16:04:43 CST; 1h 43min ago
 世界杯外围投注官网世界杯外围投注官网世界杯外围投注官网世界杯外围投注官网世界杯外围投注官网世界杯外围投注官网世界杯外围投注官网世界杯外围投注官网世界杯外围投注官网世界杯外围投注官网世界杯外围投注官网世界杯外围投注官网世界杯外围投注官网世界杯外围投注官网世界杯外围投注官网世界杯外围投注官网 Current cluster state 世界杯外围投注官网世界杯外围投注官网世界杯外围投注官网世界杯外围投注官网世界杯外围投注官网世界杯外围投注官网世界杯外围投注官网世界杯外围投注官网世界杯外围投注官网世界杯外围投注官网世界杯外围投注官网世界杯外围投注官网世界杯外围投注官网世界杯外围投注官网世界杯外围投注官网世界杯外围投注官网世界杯外围投注官网世界杯外围投注官网世界杯外围投注官网世界杯外围投注官网
NAME                 STATUS    MESSAGE             ERROR
scheduler            Healthy   ok                  
controller-manager   Healthy   ok                  
etcd-1               Healthy   {"health":"true"}   
etcd-2               Healthy   {"health":"true"}   
etcd-0               Healthy   {"health":"true"}   

安装Node修改 conf/node-install.conf内容如下:

世界杯外围投注官网!/bin/bash
世界杯外围投注官网User-defined information
export node=2
export node_ip="192.168.20.172 192.168.20.54"
export node_name="node-1 node-2"
export node_pass="123456 123456"
export flaneld_interface="ens33"

安装:

./install.sh

k8s一键安装脚本(二进制)

脚本执行完后会打打印出如下信息:

---------------- flanneld --------------------------------
192.168.20.172::node-1
   Active: active (running) since 三 2018-11-28 18:28:34 CST; 26s ago
192.168.20.54::node-2
   Active: active (running) since 三 2018-11-28 18:28:37 CST; 25s ago
 ---------------- docker --------------------------------
192.168.20.172::node-1
   Active: active (running) since 三 2018-11-28 18:28:38 CST; 24s ago
192.168.20.54::node-2
   Active: active (running) since 三 2018-11-28 18:28:42 CST; 21s ago
 ---------------- kubelet --------------------------------
192.168.20.172::node-1
   Active: active (running) since 三 2018-11-28 18:28:52 CST; 11s ago
192.168.20.54::node-2
   Active: active (running) since 三 2018-11-28 18:28:54 CST; 10s ago
 ---------------- kube-proxy --------------------------------
192.168.20.172::node-1
   Active: active (running) since 三 2018-11-28 18:28:59 CST; 5s ago
192.168.20.54::node-2
   Active: active (running) since 三 2018-11-28 18:29:00 CST; 5s ago

测试:

[[email protected] k8s-install]世界杯外围投注官网 bash
[[email protected] k8s-install]世界杯外围投注官网 source /etc/profile
[[email protected] k8s-install]世界杯外围投注官网 kubectl get nodes
NAME      STATUS    ROLES     AGE       VERSION
node-1    Ready         35s       v1.10.4
node-2    Ready         34s       v1.10.4
[[email protected] k8s-install]世界杯外围投注官网
上一篇:如何加快win10开机速度
下一篇:ubuntu16.04使用tomcat安装jenkins
相关文章
图文推荐

关于我们 | 联系我们 | 服务 | 投资合作 | 版权申明 | 在线帮助 | 网站地图 | 作品发布 | Vip技术培训 | 举报中心

版权所有: 红黑--致力于做实用的IT技术学习网站