CentOS安装kubernetes—笔记
- 关闭CentOS自带防火墙服务:
$ systemctl disable firewalld
$ systemctl stop firewalld
- 安装
etcd
和Kubernetes
软件:
$ yum install -y etcd kubernetes
- 修改配置文件:
- /etc/sysconfig/docker
- 修改
OPTION
的值为:OPTION='--selinux-enabled=false --insecure-registry gcr.io'
- 修改
- /etc/kubernetes/apiserver:
- 删除参数
--admission_control
中的ServiceAccount
- 删除参数
- /etc/sysconfig/docker
- 按顺序启动服务:
$ 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
参考链接: