Tried two ways to install Kubernetes cluster on rancher/server.
agent hosts disconnected sometimes.
All green except kubernetes-ingress-lbs
. It has 0 containers.
Set some labels to rancher server and agent hosts.
All green except kubernetes-ingress-lbs
. It has 0 containers.
Both of them has this issue: kubernetes-ingress-lbs
0 services 0 containers. Then can't access Kubernetes dashboard.
Why didn't been installed by rancher? And, is it necessary to add those labels for Kubernetes cluster?
Here is RIGHT Kubernetes Cluster deployed on Rancher server:
Turning on the Show System
, you can find the service of kubernetes-dashboard
under the namespace of kube-system
.
Well, by using the version of kubernetes is v1.5.4
, you should prepare in advance to pull the below Docker Images
:
By reading rancher/catalog and rancher/kuberetes-package, you can know and even modify the config files(like docker-compose.yml, rancher-compose.yml and so on) by yourself.
When you enable to "Show System" containers in the UI, you should be able to see the dashboard container running under Namespace: kube-system. If this container is not running then the dashboard will not be able to load.
You might have to enable kubernetes add-on service within rancher environment template.
manage environments >> edit kubernetes default template >> enable add-on service and save the new template with the preferred name.
Now launch the cluster using customized templates.