Moving further, I got the kubernetes-dashboard running but I get some network errors when I assess it. I wonder if missed some of the network settings. Here is what I did:
> kubectl create -f https://raw.githubusercontent.com/kubernetes/dashboard/v1.5.1/src/deploy/kubernetes-dashboard.yaml
> kubectl -n kube-system get service kubernetes-dashboard
NAME CLUSTER-IP EXTERNAL-IP PORT(S) AGE
kubernetes-dashboard 10.0.0.184 <nodes> 80:31247/TCP 57m
> kubectl -n kube-system log kubernetes-dashboard-3203831700-lqmnb
Using HTTP port: 9090
Creating API server client for https://10.0.0.1:443
Successful initial request to the apiserver, version: v1.5.2
Creating in-cluster Heapster client
Using service account token for csrf signing
> kubectl -n kube-system describe services kubernetes-dashboard
Name: kubernetes-dashboard
Namespace: kube-system
Labels: app=kubernetes-dashboard
Selector: app=kubernetes-dashboard
Type: NodePort
IP: 10.0.0.184
Port: <unset> 80/TCP
NodePort: <unset> 31247/TCP
Endpoints: 172.16.74.2:9090
Session Affinity: None
No events.
> kubectl proxy
Starting to serve on 127.0.0.1:8001 When I try to access it I get:
I can see the dashboard container is running, but on one of the eight kubernetes nodes (not the master):
> docker psCONTAINER ID
IMAGE
COMMAND CREATED STATUS
PORTS NAMES6398a6f87004
gcr.io/google_containers/kubernetes-dashboard-amd64:v1.5.1 "/dashboard
--port..." About an hour ago Up About an
hour
k8s_kubernetes-dashboard.d748d820_kubernetes-dashboard-3203831700-lqmnb_kube-system_e26bfb3b-5ad4-11e8-9cee-001f29049d2f_528eaea4ae8109a36917
registry.access.redhat.com/rhel7/pod-infrastructure:latest
"/usr/bin/pod" About an hour ago Up About an
hour
k8s_POD.28c50bab_kubernetes-dashboard-3203831700-lqmnb_kube-system_e26bfb3b-5ad4-11e8-9cee-001f29049d2f_6ddfaedd> docker exec -ti ae8109a36917 cat /etc/hosts...172.16.74.2 kubernetes-dashboard-3203831700-lqmnb
It's interesting how the master can't connect to the IP of the container. Also the container does not publish the 9090 port.
Thanks!
Rares