欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

【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 启动实例

https://blog.csdn.net/idwtwt/article/details/96011612