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/
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。