1、安装centos7
2、systemctl disable firewalld systemctl stop firewalld
3、yum install etcd kubernetes
4、修改配置文件 docker
/etc/sysconfig/docker 修改为
PTIONS='--selinux-enabled=false --insecure-registry gcr.io -- --log-driver=journald --signature-verification=false'
kubernetes apiserver配置文件修改 /etc/kubernetes/apiserver 把--admission-control 参数里的ServiceAccount去掉
启动服务
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
单机版的集群安装环境