MENU

k8s 平台部署 - Kubernetes+Etcd 集群

January 12, 2018 • Read: 4326 • 应用搭建

环境

系统: centos7
docker:
go:
etcd:
k8s:

master

etcd
kube-apiserver
kube-controller-manager
kube-scheduler
kube-proxy
kubelet
docker
flannel
matser:192.168.0.10

node

kube-proxy
kubelet
docker
flannel
node1:192.168.0.11 node2:192.168.0.12

docker 安装

yum install -y yum-utils device-mapper-persistent-data lvm2
#安装依赖包

yum-config-manager --add-repo \
 https://download.docker.com/linux/centos/docker-ce.repo

etcd 集群

tar zxvf etcd-*tar.gz

mv  etcd-*/{etcd,etcdctl}  /usr/bin/
chown root:root  /usr/bin/{etcd,etcdctl}

Flannel 网络

tar zxvf flannel-*tar.gz

chown root:root flanneld mk-docker-opts.sh
mv flanneld mk-docker-opts.sh /usr/bin

k8s_master
k8s_node

兼总条贯 知至知终

最后编辑于: April 2, 2018