kubernetes 學習(單機版)

1、安裝docker

一、關閉防火牆vim

systemctl disable firewalld

二、安裝kubernetes、etcdapi

說明:安裝kubernetes時會安裝docker,不用再從新安裝docker3d

yum install etcd kubernetes -y

三、啓動etcdcode

systemctl start etcd

 

 

 四、啓動dockerserver

systemctl start docker

啓動遇到的錯誤:blog

 

 

 解決辦法:kubernetes

 vim /etc/sysconfig/docker

 

 

 五、啓動kubernetes服務it

systemctl start kube-apiserverclass

systemctl start kube-controller-manager

systemctl start kube-scheudler --當啓動這個時,會拋出異常(Failed to start kube-scheudler.service: Unit not found),不用管

systemctl start kubelet

systemctl start kube-proxy

相關文章
相關標籤/搜索