systemctl disable firewalld systemctl stop firewalld yum install lvm2 yum install docker yum install -y etcd kubernetes
vim /etc/sysconfig/docker OPTIONS='--selinux-enabled=false --insecure-registry gcr.io'
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-apiserverhtml
curl http://your-ip:8080/ { "paths": [ "/api", "/api/v1", "/apis", "/healthz", "/healthz/ping", "/logs/", "/metrics", "/resetMetrics", "/swaggerapi/", "/version" ] }
或者linux
kubectl get pods
http://localhost:8080/ui
若是沒有安裝,則參照kubernetes 安裝配置 kube-ui_v3這篇文章來。git
按類型查看github
http://your-ip:8080/swagger-ui/web
http://your-ip:4194/containers/docker