i need create an https url from my dash board using kubectl proxy is only generating http url how to create an https url what command should we run for that token is grtting generated but not login dashboards stays static with no response on entering the token
相关问题
- Microk8s, MetalLB, ingress-nginx - How to route ex
- How do I change the storage class of existing pers
- Docker task in Azure devops won't accept "$(pw
- Use awslogs with kubernetes 'natively'
- Unable to run mariadb when mount volume
You can expose your
kubernetes-dashboard
service via NodePort.To achieve this, the simplest way would be to edit the current
kubernetes-dashboard
service configuration and changeClusterIP
parameter toNodePort
:kubectl edit services kubernetes-dashboard -n kube-system
Kubernetes then allocates some port from range (30000-32767) and each node should proxy that port to your target service.
You can now check
kubernetes-dashboard
and look for the port reference:kubectl describe svc kubernetes-dashboard -n kube-system
Finally, you can check whether
kubernetes-dashboard
would be accessible:curl -k https://localhost:31605
If you consider to secure a way to talk to your Kubernetes dashboard via
Bearer token
then take a look at this guideline.