标签:软件包 ges from sys net systemctl ack clust speed
安装服务[root@172_30_3_8 ~]# yum -y install etcd kubernetes
已加载插件:fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.tuna.tsinghua.edu.cn
* epel: ftp.jaist.ac.jp
* extras: mirrors.tuna.tsinghua.edu.cn
* updates: mirror.bit.edu.cn
正在解决依赖关系
--> 正在检查事务
---> 软件包 etcd.x86_64.0.3.3.11-2.el7.centos 将被 安装
---> 软件包 kubernetes.x86_64.0.1.5.2-0.7.git269f928.el7 将被 安装
--> 正在处理依赖关系 kubernetes-node = 1.5.2-0.7.git269f928.el7,它被软件包 kubernetes-1.5.2-0.7.git269f928.el7.x86_64 需要
--> 正在处理依赖关系 kubernetes-master = 1.5.2-0.7.git269f928.el7,它被软件包 kubernetes-1.5.2-0.7.git269f928.el7.x86_64 需要
--> 正在检查事务
---> 软件包 kubernetes-master.x86_64.0.1.5.2-0.7.git269f928.el7 将被 安装
--> 正在处理依赖关系 kubernetes-client = 1.5.2-0.7.git269f928.el7,它被软件包 kubernetes-master-1.5.2-0.7.git269f928.el7.x86_64 需要
---> 软件包 kubernetes-node.x86_64.0.1.5.2-0.7.git269f928.el7 将被 安装
--> 正在处理依赖关系 socat,它被软件包 kubernetes-node-1.5.2-0.7.git269f928.el7.x86_64 需要
--> 正在处理依赖关系 docker,它被软件包 kubernetes-node-1.5.2-0.7.git269f928.el7.x86_64 需要
--> 正在处理依赖关系 conntrack-tools,它被软件包 kubernetes-node-1.5.2-0.7.git269f928.el7.x86_64 需要
--> 正在检查事务
---> 软件包 conntrack-tools.x86_64.0.1.4.4-4.el7 将被 安装
--> 正在处理依赖关系 libnetfilter_cttimeout.so.1(LIBNETFILTER_CTTIMEOUT_1.1)(64bit),它被软件包 conntrack-tools-1.4.4-4.el7.x86_64 需要
--> 正在处理依赖关系 libnetfilter_cttimeout.so.1(LIBNETFILTER_CTTIMEOUT_1.0)(64bit),它被软件包 conntrack-tools-1.4.4-4.el7.x86_64 需要
--> 正在处理依赖关系 libnetfilter_cthelper.so.0(LIBNETFILTER_CTHELPER_1.0)(64bit),它被软件包 conntrack-tools-1.4.4-4.el7.x86_64 需要
--> 正在处理依赖关系 libnetfilter_queue.so.1()(64bit),它被软件包 conntrack-tools-1.4.4-4.el7.x86_64 需要
--> 正在处理依赖关系 libnetfilter_cttimeout.so.1()(64bit),它被软件包 conntrack-tools-1.4.4-4.el7.x86_64 需要
--> 正在处理依赖关系 libnetfilter_cthelper.so.0()(64bit),它被软件包 conntrack-tools-1.4.4-4.el7.x86_64 需要
---> 软件包 docker.x86_64.2.1.13.1-96.gitb2f74b2.el7.centos 将被 安装
--> 正在处理依赖关系 docker-common = 2:1.13.1-96.gitb2f74b2.el7.centos,它被软件包 2:docker-1.13.1-96.gitb2f74b2.el7.centos.x86_64 需要
--> 正在处理依赖关系 docker-client = 2:1.13.1-96.gitb2f74b2.el7.centos,它被软件包 2:docker-1.13.1-96.gitb2f74b2.el7.centos.x86_64 需要
---> 软件包 kubernetes-client.x86_64.0.1.5.2-0.7.git269f928.el7 将被 安装
---> 软件包 socat.x86_64.0.1.7.3.2-2.el7 将被 安装
--> 正在检查事务
---> 软件包 docker-client.x86_64.2.1.13.1-96.gitb2f74b2.el7.centos 将被 安装
---> 软件包 docker-common.x86_64.2.1.13.1-96.gitb2f74b2.el7.centos 将被 安装
---> 软件包 libnetfilter_cthelper.x86_64.0.1.0.0-9.el7 将被 安装
---> 软件包 libnetfilter_cttimeout.x86_64.0.1.0.0-6.el7 将被 安装
---> 软件包 libnetfilter_queue.x86_64.0.1.0.2-2.el7_2 将被 安装
--> 解决依赖关系完成
依赖关系解决
=======================================================================================================================
Package 架构 版本 源 大小
=======================================================================================================================
正在安装:
etcd x86_64 3.3.11-2.el7.centos extras 10 M
kubernetes x86_64 1.5.2-0.7.git269f928.el7 extras 36 k
为依赖而安装:
conntrack-tools x86_64 1.4.4-4.el7 base 186 k
docker x86_64 2:1.13.1-96.gitb2f74b2.el7.centos extras 18 M
docker-client x86_64 2:1.13.1-96.gitb2f74b2.el7.centos extras 3.9 M
docker-common x86_64 2:1.13.1-96.gitb2f74b2.el7.centos extras 96 k
kubernetes-client x86_64 1.5.2-0.7.git269f928.el7 extras 14 M
kubernetes-master x86_64 1.5.2-0.7.git269f928.el7 extras 25 M
kubernetes-node x86_64 1.5.2-0.7.git269f928.el7 extras 14 M
libnetfilter_cthelper x86_64 1.0.0-9.el7 base 18 k
libnetfilter_cttimeout x86_64 1.0.0-6.el7 base 18 k
libnetfilter_queue x86_64 1.0.2-2.el7_2 base 23 k
socat x86_64 1.7.3.2-2.el7 base 290 k
事务概要
=======================================================================================================================
安装 2 软件包 (+11 依赖软件包)
总下载量:85 M
安装大小:426 M
Downloading packages:
(1/13): conntrack-tools-1.4.4-4.el7.x86_64.rpm | 186 kB 00:00:00
(2/13): docker-common-1.13.1-96.gitb2f74b2.el7.centos.x86_64.rpm | 96 kB 00:00:00
(3/13): kubernetes-1.5.2-0.7.git269f928.el7.x86_64.rpm | 36 kB 00:00:00
(4/13): etcd-3.3.11-2.el7.centos.x86_64.rpm | 10 MB 00:00:04
(5/13): kubernetes-master-1.5.2-0.7.git269f928.el7.x86_64.rpm | 25 MB 00:00:07
(6/13): libnetfilter_cthelper-1.0.0-9.el7.x86_64.rpm | 18 kB 00:00:00
(7/13): libnetfilter_cttimeout-1.0.0-6.el7.x86_64.rpm | 18 kB 00:00:00
(8/13): libnetfilter_queue-1.0.2-2.el7_2.x86_64.rpm | 23 kB 00:00:00
(9/13): socat-1.7.3.2-2.el7.x86_64.rpm | 290 kB 00:00:00
(10/13): kubernetes-client-1.5.2-0.7.git269f928.el7.x86_64.rpm | 14 MB 00:00:12
(11/13): kubernetes-node-1.5.2-0.7.git269f928.el7.x86_64.rpm | 14 MB 00:00:10
(12/13): docker-client-1.13.1-96.gitb2f74b2.el7.centos.x86_64.rpm | 3.9 MB 00:00:15
(13/13): docker-1.13.1-96.gitb2f74b2.el7.centos.x86_64.rpm | 18 MB 00:00:18
-----------------------------------------------------------------------------------------------------------------------
总计 4.5 MB/s | 85 MB 00:00:18
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
警告:RPM 数据库已被非 yum 程序修改。
正在安装 : 2:docker-common-1.13.1-96.gitb2f74b2.el7.centos.x86_64 1/13
正在安装 : kubernetes-client-1.5.2-0.7.git269f928.el7.x86_64 2/13
正在安装 : kubernetes-master-1.5.2-0.7.git269f928.el7.x86_64 3/13
正在安装 : 2:docker-client-1.13.1-96.gitb2f74b2.el7.centos.x86_64 4/13
正在安装 : 2:docker-1.13.1-96.gitb2f74b2.el7.centos.x86_64 5/13
正在安装 : socat-1.7.3.2-2.el7.x86_64 6/13
正在安装 : libnetfilter_cthelper-1.0.0-9.el7.x86_64 7/13
正在安装 : libnetfilter_queue-1.0.2-2.el7_2.x86_64 8/13
正在安装 : libnetfilter_cttimeout-1.0.0-6.el7.x86_64 9/13
正在安装 : conntrack-tools-1.4.4-4.el7.x86_64 10/13
正在安装 : kubernetes-node-1.5.2-0.7.git269f928.el7.x86_64 11/13
正在安装 : kubernetes-1.5.2-0.7.git269f928.el7.x86_64 12/13
正在安装 : etcd-3.3.11-2.el7.centos.x86_64 13/13
验证中 : 2:docker-1.13.1-96.gitb2f74b2.el7.centos.x86_64 1/13
验证中 : libnetfilter_cttimeout-1.0.0-6.el7.x86_64 2/13
验证中 : 2:docker-client-1.13.1-96.gitb2f74b2.el7.centos.x86_64 3/13
验证中 : libnetfilter_queue-1.0.2-2.el7_2.x86_64 4/13
验证中 : kubernetes-node-1.5.2-0.7.git269f928.el7.x86_64 5/13
验证中 : kubernetes-client-1.5.2-0.7.git269f928.el7.x86_64 6/13
验证中 : kubernetes-master-1.5.2-0.7.git269f928.el7.x86_64 7/13
验证中 : 2:docker-common-1.13.1-96.gitb2f74b2.el7.centos.x86_64 8/13
验证中 : libnetfilter_cthelper-1.0.0-9.el7.x86_64 9/13
验证中 : etcd-3.3.11-2.el7.centos.x86_64 10/13
验证中 : conntrack-tools-1.4.4-4.el7.x86_64 11/13
验证中 : socat-1.7.3.2-2.el7.x86_64 12/13
验证中 : kubernetes-1.5.2-0.7.git269f928.el7.x86_64 13/13
已安装:
etcd.x86_64 0:3.3.11-2.el7.centos kubernetes.x86_64 0:1.5.2-0.7.git269f928.el7
作为依赖被安装:
conntrack-tools.x86_64 0:1.4.4-4.el7 docker.x86_64 2:1.13.1-96.gitb2f74b2.el7.centos
docker-client.x86_64 2:1.13.1-96.gitb2f74b2.el7.centos docker-common.x86_64 2:1.13.1-96.gitb2f74b2.el7.centos
kubernetes-client.x86_64 0:1.5.2-0.7.git269f928.el7 kubernetes-master.x86_64 0:1.5.2-0.7.git269f928.el7
kubernetes-node.x86_64 0:1.5.2-0.7.git269f928.el7 libnetfilter_cthelper.x86_64 0:1.0.0-9.el7
libnetfilter_cttimeout.x86_64 0:1.0.0-6.el7 libnetfilter_queue.x86_64 0:1.0.2-2.el7_2
socat.x86_64 0:1.7.3.2-2.el7
完毕!
[root@172_30_3_8 ~]# rpm -qa |grep kubernetes
kubernetes-master-1.5.2-0.7.git269f928.el7.x86_64
kubernetes-node-1.5.2-0.7.git269f928.el7.x86_64
kubernetes-client-1.5.2-0.7.git269f928.el7.x86_64
kubernetes-1.5.2-0.7.git269f928.el7.x86_64
[root@172_30_3_8 ~]# rpm -qa |grep etcd
etcd-3.3.11-2.el7.centos.x86_64
[root@172_30_3_8 ~]# systemctl start etcd
[root@172_30_3_8 ~]# systemctl start docker
[root@172_30_3_8 ~]# systemctl start kube-apiserver
[root@172_30_3_8 ~]# systemctl start kube-controller-manager
[root@172_30_3_8 ~]# systemctl start kube-scheduler
[root@172_30_3_8 ~]# systemctl start kubelet
[root@172_30_3_8 ~]# systemctl start kube-proxy
[root@172_30_3_8 ~]#
[root@172_30_3_8 ~]# systemctl enable docker
Created symlink from /etc/systemd/system/multi-user.target.wants/docker.service to /usr/lib/systemd/system/docker.service.
[root@172_30_3_8 ~]# systemctl enable etcd
Created symlink from /etc/systemd/system/multi-user.target.wants/etcd.service to /usr/lib/systemd/system/etcd.service.
[root@172_30_3_8 ~]# systemctl enable kube-apiserver
Created symlink from /etc/systemd/system/multi-user.target.wants/kube-apiserver.service to /usr/lib/systemd/system/kube-apiserver.service.
[root@172_30_3_8 ~]# systemctl enable kube-controller-manager
Created symlink from /etc/systemd/system/multi-user.target.wants/kube-controller-manager.service to /usr/lib/systemd/system/kube-controller-manager.service.
[root@172_30_3_8 ~]# systemctl enable kubelet
Created symlink from /etc/systemd/system/multi-user.target.wants/kubelet.service to /usr/lib/systemd/system/kubelet.service.
[root@172_30_3_8 ~]# systemctl enable kube-proxy
Created symlink from /etc/systemd/system/multi-user.target.wants/kube-proxy.service to /usr/lib/systemd/system/kube-proxy.service.
[root@172_30_3_8 kubernetes]# kubectl get nodes
NAME STATUS AGE
127.0.0.1 Ready 2m
[root@172_30_3_8 kubernetes]# kubectl get all
NAME CLUSTER-IP EXTERNAL-IP PORT(S) AGE
svc/kubernetes 10.254.0.1 <none> 443/TCP 2m
标签:软件包 ges from sys net systemctl ack clust speed
原文地址:https://blog.51cto.com/jerrymin/2428230