【K8S】单机部署
程序员文章站
2022-07-13 10:09:44
...
1 安装etcd kubernetes
先卸载原来的docker-ce社区版
yum autoremove docker-ce
安装etcd kubernetes(会附带安装docker)
yum install -y etcd kubernetes
修改配置文件/etc/sysconfig/docker
OPTIONS='--selinux-enabled=false --insecure-registry gcr.io --log-driver=journald --signature-verification=false'
修改配置文件/etc/kubernetes/apiserver
把—adminssion_control
参数中的ServiceAccount
删除
KUBE_API_ADDRESS修改为:
# The address on the local server to listen to.
KUBE_API_ADDRESS="--insecure-bind-address=0.0.0.0"
2 启动服务
systemctl enable docker
systemctl start docker
systemctl enable etcd
systemctl start etcd
systemctl enable kube-apiserver
systemctl start kube-apiserver
systemctl enable kube-controller-manager
systemctl start kube-controller-manager
systemctl enable kube-scheduler
systemctl start kube-scheduler
systemctl enable kubelet
systemctl start kubelet
systemctl enable kube-proxy
systemctl start kube-proxy
3 启动实例
上一篇: TiDB测试环境的快速部署
下一篇: 【k8s】2,安装k8s