本文介绍了如何生成配置以连接到远程Kubernetes主机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经完成了在裸机Centos 7上运行的测试Kubernets主机的设置.这将用作测试系统,因为我们将在IBM Bluemix Kubernetes服务中部署所有内容.

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.

从Bluemix中获取配置很容易...虽然我们在Centos上的Kubernetes可以正常工作,但是我不知道如何生成配置以从我们的工作站访问它.解释在 https://kubernetes.io/docs/tasks/administer-cluster/share -configuration/

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 athttps://kubernetes.io/docs/tasks/administer-cluster/share-configuration/

但是我对设置Kubernetes主机是陌生的...而且不知道在哪里

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.

谢谢您的指导.

推荐答案

您可以尝试查看选项,将admin.conf文件复制到您的工作站,然后运行

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

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

此后,您可以从工作站 http://localhost/ui

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

这篇关于如何生成配置以连接到远程Kubernetes主机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-15 19:49