如何生成配置以连接到远程Kubernetes主机

编程入门 行业动态 更新时间:2024-10-24 08:20:28
本文介绍了如何生成配置以连接到远程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可以正常工作,但是我不知道如何生成配置以从我们的工作站访问它.解释在 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 at 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

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

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

更多推荐

如何生成配置以连接到远程Kubernetes主机

本文发布于:2023-11-23 21:04:36,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1622855.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:连接到   主机   Kubernetes

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!