By Ahfaagi5
I’ve not been able to figure out how to get access to the k8s dashboard with the DO-hosted k8s.
Commands:
helm install stable/kubernetes-dashboard --name k8s-dashboard
kubectl describe service kubernetes-dashboard
Name: kubernetes-dashboard
Namespace: kube-system
Labels: k8s-app=kubernetes-dashboard
Annotations: kubectl.kubernetes.io/last-applied-configuration:
{"apiVersion":"v1","kind":"Service","metadata":{"annotations":{},"labels":{"k8s-app":"kubernetes-dashboard"},"name":"kubernetes-dashboard"...
Selector: k8s-app=kubernetes-dashboard
Type: ClusterIP
IP: 10.245.134.109
Port: <unset> 443/TCP
TargetPort: 8443/TCP
Endpoints: <none>
Session Affinity: None
Events: <none>
kubectl proxy
Starting to serve on 127.0.0.1:8001
But when I hit the URL with as an http or https URL I just get the API and no UI.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
This comment has been deleted
CORRECTION:
seems you’re installing via helm so it should have created the necessary sa.
just try navigating here after kubectl proxy
http://localhost:8001/api/v1/namespaces/kube-system/services/https:kubernetes-dashboard:/proxy/#!/overview?namespace=default
================ You need to give it cluster-admin access I think
kubectl create sa kubernetes-dashboard --namespace=kube-system
kubectl create clusterrolebinding kubernetes-dashboard --clusterrole=cluster-admin --serviceaccount=kube-system:kubernetes-dashboard
should be able to access after that and doing your steps in this url:
http://localhost:8001/api/v1/namespaces/kube-system/services/https:kubernetes-dashboard:/proxy/#!/overview?namespace=default
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.