centos7安装
systemctl disable firewalldsystemctl stop firewalldyum install lvm2yum install dockeryum install -y etcd kubernetes
修改DOCKER OPTIONS
vim /etc/sysconfig/dockerOPTIONS='--selinux-enabled=false --insecure-registry gcr.io'
修改k8s的配置
vim /etc/kubernetes/apiserver-- 删除ServiceAccountKUBE_ADMISSION_CONTROL="--admission-control=NamespaceLifecycle,NamespaceExists,LimitRanger,SecurityContextDeny,ServiceAccount,ResourceQuota"
启动
systemctl start etcdsystemctl start dockersystemctl enable kube-apiserversystemctl start kube-apiserversystemctl status kube-apiserver.servicesystemctl start kube-controller-managersystemctl start kube-schedulersystemctl start kubeletsystemctl start kube-proxy
检查kube-apiserver
curl http://your-ip:8080/{ "paths": [ "/api", "/api/v1", "/apis", "/healthz", "/healthz/ping", "/logs/", "/metrics", "/resetMetrics", "/swaggerapi/", "/version" ]}
或者
kubectl get pods
web ui
如果没有安装,则参照这篇文章来。
按类型查看
swagger-ui
cAdvisor
参考
(
以此为准
)(
误导
)