centos7安装kubernetes
时间:2016-06-01 15:20 来源:linux.it.net.cn 作者:IT
centos7安装
systemctl disable firewalld systemctl stop firewalld yum install lvm2 yum install docker yum install -y etcd kubernetes
修改DOCKER OPTIONS
vim /etc/sysconfig/docker OPTIONS='--selinux-enabled=false --insecure-registry gcr.io'
修改k8s的配置
vim /etc/kubernetes/apiserver -- 删除ServiceAccount KUBE_ADMISSION_CONTROL="--admission-control=NamespaceLifecycle,NamespaceExists,LimitRanger,SecurityContextDeny,ServiceAccount,ResourceQuota"
启动
systemctl start etcd systemctl start docker systemctl enable kube-apiserver systemctl start kube-apiserver systemctl status kube-apiserver.service systemctl start kube-controller-manager systemctl start kube-scheduler systemctl start kubelet systemctl 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
http://localhost:8080/ui 如果没有安装,则参照kubernetes 安装配置 kube-ui_v3这篇文章来。
按类型查看
swagger-ui
http://your-ip:8080/swagger-ui/
cAdvisor
http://your-ip:4194/containers/
参考
-
centos安装docker有文件冲突怎么解决啊?
-
搭建单机Kubernetes开发环境
-
Kubernetes 安装(Centos环境)
-
Kubernetes UI
-
kubernetes 安装配置 kube-ui_v3(以此为准)
-
kubernetes集群中部署kube-ui_v5(误导)
(责任编辑:IT)
centos7安装修改DOCKER OPTIONS修改k8s的配置启动检查kube-apiserver 或者 web uihttp://localhost:8080/ui 如果没有安装,则参照kubernetes 安装配置 kube-ui_v3这篇文章来。
按类型查看
swagger-uihttp://your-ip:8080/swagger-ui/
cAdvisorhttp://your-ip:4194/containers/
参考
(责任编辑:IT) |