澳门新萄京官方网站-www.8455.com-澳门新萄京赌场网址

澳门新萄京官方网站Kubernetes集群搭建,Kubernete

2019-06-29 作者:澳门新萄京官方网站   |   浏览(166)

Kubernetes集群组件:
  - etcd 二个高可用的K/V键值对存储和劳动意识系统
  - flannel 完毕夸主机的器皿互联网的通讯
  - kube-apiserver 提供kubernetes集群的API调用
  - kube-controller-manager 确认保障集群服务
  - kube-scheduler 调解容器,分配到Node
  - kubelet 在Node节点上服从安顿文件中定义的器皿标准运维容器
  - kube-proxy 提供互联网代理服务

Kubernetes集群安装配置

kubernetes是google集团基于docker所做的一个遍及式集群,有以下主件组成

前情表达: 三台CentOS7系统的虚构机(1个master 2个node),三台机器上的防火墙,SELINUX全体闭合。作者的实验坏境能够上网,暗中同意的YUM源就能够用。

Kubernetes包提供了多少个劳务:kube-apiserver,kube-scheduler,kube-controller-manager,kubelet,kube-proxy。那几个劳务由systemd管理,配置文件地点:/etc/kubernetes。大家经过kubernetes实现跨主机。第一个主机,centos-master,将是Kubernetes管理。那几个主机将运转kube-apiserver,kube-controller-manager和kube-scheduler,也将运转etcd。其他主机,centos-minion-n将是节点并运营kubelet,etcd,cadector和docker。

一.安装配置Kubernetes Master 如下操作在master上执行1.使用yum安装etcd和kubernetes-master

Kubernetes集群组件:

etcd: 高可用存款和储蓄分享配置和劳务意识

1.什么是kubernetes   

抱有节点都运维flanneld作为网络覆盖。

# yum -y install etcd kubernetes-master

-Master节点

flannel: 网络布局扶助

  Kubernetes(k8s)是谷歌开源的器皿集群管理连串(谷歌(Google)里面:Borg)。在Docker本事的底蕴上,为容器化的利用提供安排运转、能源调整、服务意识和动态伸缩等一多种完整意义,提升了常见容器集群处理的便捷性。   

计划条件:

2.编辑/etc/etcd/etcd.conf文件

  - etcd 八个高可用的K/V键值对存款和储蓄和劳动意识系统

kube-apiserver: 不论通过kubectl还是利用remote api 直接决定,都要透过apiserver

  Kubernetes优势:       

计划三台centos7主机,请将主机IP替换为您的处境。

ETCD_NAME=default
ETCD_DATA_DIR="/var/lib/etcd/default.etcd"                
ETCD_LISTEN_CLIENT_URLS="http://0.0.0.0:2379"             #监听客户地址的端口
ETCD_ADVERTISE_CLIENT_URLS="http://主ip:2379"        #通知客户的地址及端口

  - kube-apiserver 提供kubernetes集群的API调用

kube-controller-manager: 对replication controller, endpoints controller, namespace controller, and serviceaccounts controller的轮回调整,与kube-apiserver交互,保险那个controller工作

    - 容器编排         

centos-master = 192.168.2.68

3.编辑/etc/kubernetes/apiserver文件

  - kube-controller-manager 确认保障集群服务

kube-scheduler: Kubernetes scheduler的意义正是依靠特定的调解算法将pod调治到钦点的办事节点(minion)上,这一历程也叫绑定(bind)

     - 轻量级         

centos-minion = 192.168.2.78

KUBE_API_ADDRESS="--insecure-bind-address=0.0.0.0"                              #服务器的监听地址
KUBE_API_PORT="--port=8080"                                                                  #监听端口
KUBELET_PORT="--kubelet-port=10250"                                            

  - kube-scheduler 调治容器,分配到Node

kubelet: Kubelet运行在Kubernetes Minion Node上. 它是container agent的逻辑继承者

    - 开源          

禁用主节点和具备节点上的防火墙,因为docker与其余防火墙法规管理器不能够很好地干活。CentOS不会令你禁止使用防火墙,只要SELinux强制,所以需求先禁止使用。

KUBE_ETCD_SERVERS="--etcd-servers="                     #etcd 服务的地址及端口
KUBE_SERVICE_ADDRESSES="--service-cluster-ip-range=10.254.0.0/16"
KUBE_ADMISSION_CONTROL="--admission-control=NamespaceLifecycle,NamespaceExists,LimitRanger,SecurityContextDeny,ResourceQuota"
KUBE_API_ARGS=""

-Minion节点

kube-proxy: kube-proxy是kubernetes 里运营在minion节点上的八个组件, 它起的作用是三个劳务代办的剧中人物

    - 弹性伸缩         

setenforce 0

cp /etc/kubernetes/config /etc/kubernetes/config.bak

  - flannel 完成夸主机的容器互连网的通讯

kubernetes架构图 如下:

    - 负载均衡

vim /etc/selinux/config

vim /etc/kubernetes/config

  - kubelet 在Node节点上遵守安顿文件中定义的器皿规范运行容器

澳门新萄京官方网站 1

      •Kubernetes的为主概念

SELINUX=disabled

KUBE_LOGTOSTDERR=``"--logtostderr=true"

  - kube-proxy 提供互连网代理服务

环境:Centos7 X86_64

  1)Pod   

systemctl disable iptables-services firewalld

KUBE_LOG_LEVEL=``"--v=0"

集群暗指图

下载地址:

    运维于Node节点上,若干有关容器的构成。Pod内富含的器皿运维在同一宿主机上,使用同样的互连网命名空间、IP地址和端口,能够透过localhost进行通。Pod是Kurbernetes实行创办、调整和管理的纤维单位,它提供了比容器更加高档次的架空,使得布署和治本越来越灵敏。三个Pod能够分包多个器皿可能多少个相关容器。                       2)Replication Controller
      Replication Controller用来保管Pod的别本,保障集群中留存钦定数量的Pod别本。集群中别本的数据超越钦定数量,则会停下钦赐数量之外的剩下容器数量,反之,则会运转少于内定数量个数的器皿,有限支持数据不改变。Replication Controller是促成弹性伸缩、动态扩大体积和滚动进级的中坚。

systemctl stop iptables-services firewalld

KUBE_ALLOW_PRIV=``"--allow-privileged=false"

  Kubernetes专业方式server-client,Kubenetes Master提供集中化管理Minions。

master:192.168.50.130

  3)Service   

官方配置centos的yum源为docker官方源,也足以不陈设,使用私下认可的centos源

4.启动etcd、kube-apiserver、kube-controller-manager、kube-scheduler等服务,并设置开机启动。

部署1台Kubernetes Master节点和3台Minion节点,

monion01:192.168.50.131

     Service定义了Pod的逻辑群集和走访该集合的安插,是实在服务的肤浅。Service提供了三个联结的劳动走访入口以及劳动代办和意识体制,用户没有须要驾驭后台Pod是如何运作。

# vim/etc/yum.repos.d/virt7-docker-common-release.repo(全部主机上)

for SERVICES in etcd kube-apiserver kube-controller-manager kube-scheduler;

192.168.137.142 cmmaster

monion02:192.168.50.132

      4)Label     

[virt7-docker-common-release] name=virt7-docker-common-release baseurl= gpgcheck=0

do

192.168.137.148 cmnode1

monion03:192.168.50.133

       Kubernetes中的任性API对象都是经过Label进行标记,Label的真相是一文山会海的K/V键值对。Label是Replication Controller和Service运转的根基,二者通过Label来进展关联Node上运维的Pod。

配置主机名,也得以不配备,使用ip来管理

  systemctl restart $SERVICES;

192.168.137.199 cmnode2

master部署:

      5)Node   

# vim /etc/hosts(全体主机上)

  systemctl enable $SERVICES;

192.168.137.212 cmnode3

1.关闭防火墙

      Node是Kubernetes集群架构中运维Pod的劳动节点(或agent)。Node是Kubernetes集群操作的单元,用来承载被分配Pod的运作,是Pod运营的宿主机。

  systemctl status $SERVICES ;

设置EPEL源,在具备节点上

#systemctl stop firewalld

2.先安装 Kubernetes Master

echo "192.168.2.68 centos-master

done

# yum -y install epel-release

#systemctl disable firewalld

  1)使用yum安装etcd和kubernetes-master

192.168.2.78 centos-minion" >> /etc/hosts

5.在etcd中定义flannel网络

设置配备Kubernetes Master,在Master节点上

2.禁用selinux

# yum -y install etcd kubernetes-master  flannel

安装

etcdctl mk /atomic.io/network/config '{"Network":"172.17.0.0/16"}'

1.使用yum安装etcd和kubernetes-master

setenforce 0

  2)编辑/etc/etcd/etcd.conf文件

怀有的主机通过yum安装下列服务,尽管接纳centos源,请将革命部分去掉。其实同样,装出来都是1.4.0 1.12.5

二.安装配备Kubernetes Node

# yum -y install etcd kubernetes-master

3.安装ntp

ETCD_NAME=default
ETCD_DATA_DIR="/var/lib/etcd/default.etcd"
ETCD_LISTEN_CLIENT_URLS=""
ETCD_ADVERTISE_CLIENT_URLS=""

# yum -y install--enablerepo=virt7-docker-common-releaseetcd flannel kubernetes(全数主机上)

一般来讲操作在node1、node2上进行

2.编辑/etc/etcd/etcd.conf文件

yum -y install ntp

  3)编辑/etc/kubernetes/apiserver文件

# yum -y install etcd flannel kubernetes

1.使用yum安装flannel和kubernetes-node

ETCD_NAME=default

systemctl start ntpd

KUBE_API_ADDRESS="--insecure-bind-address=0.0.0.0"
KUBE_API_PORT="--port=8080"
KUBELET_PORT="--kubelet-port=10250"
KUBE_ETCD_SERVERS="--etcd-servers="
KUBE_SERVICE_ADDRESSES="--service-cluster-ip-range=10.254.0.0/16"
KUBE_ADMISSION_CONTROL="--admission-control=NamespaceLifecycle,NamespaceExists,LimitRanger,SecurityContextDeny,ResourceQuota"
//注意:上一句里面包车型地铁ServerCount一定要去掉,不然pod会未有数量的。

配置

yum -y install flannel kubernetes-node

ETCD_DATA_DIR="/var/lib/etcd/default.etcd"

systemctl enable ntpd

  4)在etcd中定义flannel网络

#vim /etc/kubernetes/config(全数节点)

2.为flannel互联网钦定etcd服务,修改/etc/sysconfig/flanneld文件

ETCD_LISTEN_CLIENT_URLS=""

4.安装etcd与kubernete

# etcdctl mk /atomic.io/network/config '{"Network":"172.17.0.0/16"}'

# logging to stderr means we get it in the systemd journal

FLANNEL_ETCD=""                                           #etcd运转在哪些服务器上
FLANNEL_ETCD_KEY="/atomic.io/network"

ETCD_ADVERTISE_CLIENT_URLS=""

yum -y install etcd kubernetes

   5)编辑/etc/sysconfig/flanneld

KUBE_LOGTOSTDERR="--logtostderr=true"

3.修改/etc/kubernetes/config文件

3.编辑/etc/kubernetes/apiserver文件

5.修改etcd配置文件

FLANNEL_ETCD_ENDPOINTS=""
FLANNEL_ETCD_PREFIX="/atomic.io/network"

# journal message level, 0 is debug

KUBE_LOGTOSTDERR="--logtostderr=true"
KUBE_LOG_LEVEL="--v=0"
KUBE_ALLOW_PRIV="--allow-privileged=false"
KUBE_MASTER="--master="                              #主服务器的地点和端口

KUBE_API_ADDRESS="--insecure-bind-address=0.0.0.0"

vi /etc/etcd/etcd.conf

   6)运营etcd、kube-apiserver、kube-controller-manager、kube-scheduler、flanneld等劳务,并安装开机运转。

KUBE_LOG_LEVEL="--v=0"

4.如约如下内容改换对应node的安排文件/etc/kubernetes/kubelet

KUBE_API_PORT="--port=8080"

ETCD_NAME=default

# for SERVICES in etcd kube-apiserver kube-controller-manager kube-scheduler flanneld;
   do
    systemctl restart $SERVICES;
    systemctl enable $SERVICES;
    systemctl status $SERVICES ;
    done

# Should this cluster be allowed to run privileged docker containers

首先个节点

KUBELET_PORT="--kubelet-port=10250"

ETCD_DATA_DIR="/var/lib/etcd/default.etcd"

3.安装配置Kubernetes Node

KUBE_ALLOW_PRIV="--allow-privileged=false"

KUBELET_ADDRESS="--address=0.0.0.0"
KUBELET_PORT="--port=10250"
KUBELET_HOSTNAME="--hostname-override=192.168.1.21" #修改成相应Node的IP
KUBELET_API_SERVER="--api-servers=" #指定Master节点的API Server
KUBELET_POD_INFRA_CONTAINER="--pod-infra-container-image=registry.access.redhat.com/rhel7/pod-infrastructure:latest"
KUBELET_ARGS=""

KUBE_ETCD_SERVERS="--etcd-servers="

ETCD_LISTEN_CLIENT_URLS=""

  1)使用yum安装flannel和kubernetes-node

# How the replication controller and scheduler find the kube-apiserver

其次个节点

KUBE_SERVICE_ADDRESSES="--service-cluster-ip-range=10.254.0.0/16"

ETCD_ADVERTISE_CLIENT_URLS=""

# yum -y install flannel kubernetes-node  

KUBE_MASTER="--master="

KUBELET_ADDRESS="--address=0.0.0.0"
KUBELET_PORT="--port=10250"
KUBELET_HOSTNAME="--hostname-override=192.168.1.141" #修改成对应Node的IP
KUBELET_API_SERVER="--api-servers=" #指定Master节点的API Server
KUBELET_POD_INFRA_CONTAINER="--pod-infra-container-image=registry.access.redhat.com/rhel7/pod-infrastructure:latest"
KUBELET_ARGS=""

KUBE_ADMISSION_CONTROL="--admission-control=NamespaceLifecycle,NamespaceExists,LimitRanger,SecurityContextDeny,ResourceQuota"

6.修改kubernetes apiserver

  2)为flannel网络钦命etcd服务,修改/etc/sysconfig/flanneld文件

# vim /etc/etcd/etcd.conf(master)

5.在颇具Node节点上运行kube-proxy,kubelet,docker,flanneld等劳动,并安装开机运营。

KUBE_API_ARGS=""

vi /etc/kubernetes/apiserver

FLANNEL_ETCD=""
FLANNEL_ETCD_KEY="/atomic.io/network"  

# [member]

for SERVICES in kube-proxy kubelet docker flanneld;

4.起首etcd、kube-apiserver、kube-controller-manager、kube-scheduler等服务,并设置开机运行。

KUBE_API_ADDRESS="--address=0.0.0.0"

  3)修改/etc/kubernetes/config文件

ETCD_NAME=default

do

开头etcd、kube-apiserver、kube-controller-manager、kube-scheduler等劳务,并设置开机运维。

KUBE_API_PORT="--port=8080"

KUBE_LOGTOSTDERR="--logtostderr=true"
KUBE_LOG_LEVEL="--v=0"
KUBE_ALLOW_PRIV="--allow-privileged=false"
KUBE_MASTER="--master="

ETCD_DATA_DIR="/var/lib/etcd/default.etcd"

澳门新萄京官方网站Kubernetes集群搭建,Kubernetes集群部署文档。  systemctl restart $SERVICES;

for SERVICES in etcd kube-apiserver kube-controller-manager kube-scheduler; do systemctl restart $SERVICES;systemctl enable $SERVICES;systemctl status $SERVICES ; done

KUBELET_PORT="--kubelet_port=10250"

  4)遵照如下内容改动对应node的安顿文件/etc/kubernetes/kubelet

ETCD_LISTEN_CLIENT_URLS=""

  systemctl enable $SERVICES;

# systemctl status  etcd.service

KUBE_ETCD_SERVERS="--etcd_servers="

node1:

#[cluster]

  systemctl status $SERVICES;

# systemctl status  kube-apiserver.service

KUBE_SERVICE_ADDRESSES="--service-cluster-ip-range=10.254.0.0/16"

KUBELET_ADDRESS="--address=0.0.0.0"
KUBELET_PORT="--port=10250"
KUBELET_澳门新萄京官方网站Kubernetes集群搭建,Kubernetes集群部署文档。HOSTNAME="--hostname-override=192.168.118.140" #修改成对应Node的IP
KUBELET_API_SERVER="--api-servers=" #指定Master节点的API Server
KUBELET_POD_INFRA_CONTAINER="--pod-infra-container-image=registry.access.RedHat.com/rhel7/pod-infrastructure:latest"
KUBELET_ARGS=""

ETCD_ADVERTISE_CLIENT_URLS=""

done

# systemctl status  kube-controller-manager.service

KUBE_ADMISSION_CONTROL="--admission_control=NamespaceLifecycle,NamespaceExists,LimitRanger,SecurityContextDeny,ResourceQuota"

node2:

Default能够改掉dir也得以改会自动创制

三.验证集群是不是安装成功

# systemctl status  kube-scheduler.service

KUBE_API_ARGS=""

KUBELET_ADDRESS="--address=0.0.0.0"
KUBELET_PORT="--port=10250"
KUBELET_HOSTNAME="--hostname-override=192.168.118.141"
KUBELET_API_SERVER="--api-servers="
KUBELET_POD_INFRA_CONTAINER="--pod-infra-container-image=registry.access.redhat.com/rhel7/pod-infrastructure:latest"
KUBELET_ARGS=""

# vim /etc/kubernetes/apiserver(master) 一定把剩下的解决,特别是验证那块

在master上实行如下命令

5.在etcd中定义flannel网络

7.启动kube-apiserver  kube-controller-manager  kube-scheduler

  5)在颇具Node节点上运营kube-proxy,kubelet,docker,flanneld等劳动,并安装开机运营。

# The address on the local server to listen to.

kubectl get node

[root@cmmaster ~]# etcdctl mk /atomic.io/network/config '{"Network":"172.17.0.0/16"}'

forSERVICESinetcd kube-apiserver kube-controller-manager kube-scheduler;do

# for SERVICES in kube-proxy kubelet docker flanneld;do systemctl restart $SERVICES;systemctl enable $SERVICES;systemctl status $SERVICES; done

KUBE_API_ADDRESS="--address=0.0.0.0"

注脚:上述2个节点符合规律显示,状态为Ready,则注脚集群搭建成功。

安装配备Kubernetes Node

systemctl restart $SERVICES

4.验证是不是成功

# The port on the local server to listen on.

澳门新萄京官方网站 2

一般来讲操作在cmnode1、cmnode2、cmnode3上推行

systemctl enable $SERVICES

[root@master ~]# kubectl get node
NAME              STATUS    AGE
192.168.118.140  Ready    3d
192.168.118.141  Ready    3d

KUBE_API_PORT="--port=8080"

 

1.安装flannel kubernetes-node

systemctl status $SERVICES

5.常用排错命令

# Port kubelets listen on

 

yum -y install flannel kubernetes-node

done

#kubectl describe pod/rc    .....  -n=kube-system

KUBELET_PORT="--kubelet-port=10250"

 

2.为flannel网络钦赐etcd服务,修改/etc/sysconfig/flanneld文件

8.开立网络

正文永恒更新链接地址:http://www.linuxidc.com/Linux/2017-10/148042.htm

# Comma separated list of nodes in the etcd cluster

FLANNEL_ETCD=""

etcdctl mk /atomic.io/network/config'{"Network":"172.17.0.0/16"}'

澳门新萄京官方网站 3

KUBE_ETCD_SERVERS="--etcd-servers="

FLANNEL_ETCD_KEY="/atomic.io/network"

9.查看节点

# Address range to use for services

3.修改/etc/kubernetes/config文件

kubectlgetnodes

KUBE_SERVICE_ADDRESSES="--service-cluster-ip-range=10.254.0.0/16"

KUBE_LOGTOSTDERR="--logtostderr=true"

澳门新萄京官方网站 4

# Add your own!

KUBE_LOG_LEVEL="--v=0"

到此master端配置实现

KUBE_API_ARGS=""

KUBE_ALLOW_PRIV="--allow-privileged=false"

客户端配置

·警告此互连网必须在网络基础设备中未选拔!172.30.0.0/16在大家的网络是未曾用过的

澳门新萄京官方网站,KUBE_MASTER="--master="

1.在monion01、monion02、monion03上部署

systemctl start etcd

4.根据如下内容退换对应node的安顿文件/etc/kubernetes/kubelet

yum -y install flannel kubernetes

etcdctl mkdir /kube-centos/network

KUBELET_ADDRESS="--address=0.0.0.0"                                   #将127.0.0.1修改成0.0.0.0

2.配置flanneld

etcdctl mk /kube-centos/network/config"{"Network":"172.30.0.0/16","SubnetLen": 24,"Backend": {"Type":"vxlan"} }"

KUBELET_PORT="--port=10250"

1

# vim/etc/sysconfig/flannel(master)

KUBELET_HOSTNAME="--hostname-override=192.168.137.148"             #修改成相应Node的IP

vi /etc/sysconfig/flanneld
FLANNEL_ETCD=""

# Flanneld configuration options

KUBELET_API_SERVER="--api-servers="     #指定Master节点的API Server

3.配置kubernetes

# etcd url location.  Point this to the server where etcd runs

KUBELET_POD_INFRA_CONTAINER="--pod-infra-container-image=registry.access.redhat.com/rhel7/pod-infrastructure:latest"

vi /etc/kubernetes/config

FLANNEL_ETCD_ENDPOINTS=""

KUBELET_ARGS=""

KUBE_MASTER="--master="

# etcd config key.  This is the configuration key that flannel queries

5.在拥有Node节点上运行kube-proxy,kubelet,docker,flanneld等服务,并安装开机运营

4.配置kubelet

# For address range assignment

# for SERVICES in kube-proxy kubelet docker flanneld;do systemctl restart $SERVICES;systemctl enable $SERVICES;systemctl status $SERVICES; done

monion01

FLANNEL_ETCD_PREFIX="/kube-centos/network"

•验证集群是或不是安装成功

vi /etc/kubernetes/kubelet

# Any additional options that you want to pass

在master上施行如下命令

KUBELET_ADDRESS="--address=0.0.0.0"

#FLANNEL_OPTIONS=""

[root@cmmaster ~]# kubectl get node

KUBELET_PORT="--port=10250"

# vim/etc/kubernetes/kubelet(minion)

NAME              STATUS    AGE

# change the hostname to this host’s IP address

# The address for the info server to serve on

192.168.137.147   Ready     7m

KUBELET_HOSTNAME="--hostname_override=192.168.50.131"

KUBELET_ADDRESS="--address=0.0.0.0"

192.168.137.148   Ready     1m

KUBELET_API_SERVER="--api_servers="

# The port for the info server to serve on

192.168.137.199   Ready     7m

KUBELET_ARGS=""

KUBELET_PORT="--port=10250"

上述节点平常呈现,状态为Ready,则证实集群搭建成功

monion02

# You may leave this blank to use the actual hostname

澳门新萄京官方网站 5

vi /etc/kubernetes/kubelet

# Check the node number!

KUBELET_ADDRESS="--address=0.0.0.0"

KUBELET_HOSTNAME="--hostname-override=centos-minion-n"

KUBELET_PORT="--port=10250"

# Location of the api-server

# change the hostname to this host’s IP address

KUBELET_API_SERVER="--api-servers="

KUBELET_HOSTNAME="--hostname_override=192.168.50.132"

# Add your own!

KUBELET_API_SERVER="--api_servers="

KUBELET_ARGS=""

KUBELET_ARGS=""

# vim /etc/sysconf/flannel(minion)

monion03

# Flanneld configuration options

KUBELET_ADDRESS="--address=0.0.0.0"

# etcd url location.  Point this to the server where etcd runs

KUBELET_PORT="--port=10250"

FLANNEL_ETCD_ENDPOINTS=""

# change the hostname to this host’s IP address

# etcd config key.  This is the configuration key that flannel queries

KUBELET_HOSTNAME="--hostname_override=192.168.50.133"

# For address range assignment

KUBELET_API_SERVER="--api_servers="

FLANNEL_ETCD_PREFIX="/kube-centos/network"

KUBELET_ARGS=""

# Any additional options that you want to pass

5.运维服务

#FLANNEL_OPTIONS=""

forSERVICESinkube-proxy kubelet docker flanneld;do

master运行脚本

systemctl restart $SERVICES

for SERVICES in etcd kube-apiserver kube-controller-manager kube-scheduler flanneld; do systemctl restart$SERVICESsystemctlenable$SERVICESsystemctl status$SERVICESdone

systemctl enable $SERVICES

minion运行脚本

systemctl status $SERVICES

for SERVICES in kube-proxy kubelet flanneld docker; do

done

systemctl restart$SERVICES

6.验证

systemctlenable$SERVICES

monion01

systemctl status$SERVICES

ip a | grep flannel | grep inet

done

澳门新萄京官方网站 6

验证

在monion02和monion3上进行查看

$kubectl get nodes

master

NAME                   LABELS            STATUS

kubect lget nodes

centos-minion                    Ready

NAME             LABELS                                  STATUS

192.168.50.131   kubernetes.io/hostname=192.168.50.131   Ready

192.168.50.132   kubernetes.io/hostname=192.168.50.132   Ready

192.168.50.133   kubernetes.io/hostname=192.168.50.133   Ready

测验完了!

本文由澳门新萄京官方网站发布于澳门新萄京官方网站,转载请注明出处:澳门新萄京官方网站Kubernetes集群搭建,Kubernete

关键词: