Docker+Kubernetes linux x64 Centos7 安装

来源:互联网 发布:手机航班查询软件 编辑:程序博客网 时间:2024/04/29 04:42

Docker+Kubernetes linux x64 Centos7 安装

1.linux支持中文的设置
vi /etc/locale.conf

LANG=”zh_CN.GB18030”
LANGUAGE=”zh_CN.GB18030:zh_CN.GB2312:zh_CN”
SUPPORTED=”zh_CN.UTF-8:zh_CN:zh:en_US.UTF-8:en_US:en”
SYSFONT=”lat0-sun16”

2.关闭防火墙
systemctl stop firewalld.service

systemctl disable iptables-services firewalld
systemctl stop iptables-services firewalld

3.安装epel
yum -y install epel-release

4.安装docker
yum -y install docker-io

5.启动docker
service docker start

6.设置docker随主机启动
chkconfig docker on

7. 按照etcd+kubernetes
yum -y install etcd kubernetes

8.启动各进程
systemctl start etcd
systemctl start docker
systemctl start kube-apiserver
systemctl start kube-controller-manager
systemctl start kube-scheduler
systemctl start kubelet
systemctl start kube-proxy

systemctl enable SERVICESsystemctlstatusSERVICES

0 0
原创粉丝点击