How to generate the configuration to connect to a remote Kubernetes host

烈酒焚心 提交于 2019-12-23 05:34:07

问题


I have finished setting up a test Kubernets host running on a bare metal Centos 7. This will be used as a test system as we will be deploying everything in IBM Bluemix Kubernetes service.

Getting the configuration from Bluemix is easy... and while our Kubernetes on Centos works OK I don't know how to generate the configuration to access it from our workstations. It is explained at https://kubernetes.io/docs/tasks/administer-cluster/share-configuration/

but I am new to setting up a Kubernetes host... and have no idea where that

$ cluster/kube-up.sh

command is... or which package to install to get it.

Thanks for any guide on this.


回答1:


You can try option see, copy admin.conf file to your workstation, then run

 kubectl --kubeconfig=./admin.conf proxy -p 80 

after this your can access your dashboard from workstation http://localhost/ui



来源:https://stackoverflow.com/questions/44411940/how-to-generate-the-configuration-to-connect-to-a-remote-kubernetes-host

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!