解决了

玩Karbon

  • 2019年8月21日
  • 2回答
  • 1862的浏览量

你好,所有人

我对Nutanix和Kubernetes都是新手所以我为新手问题道歉?

我在我的Windows电脑上玩过docker和kubernetes,但是在过渡到碳簇的时候大脑冻结了。

如何让kubectl使用我从Karbon下载的配置文件?

目前kubectl只和我的docker VM对话?

非常感谢
J

本主题已关闭供评论

2回答

Userlevel 2
徽章 +2
这是否有帮助:

https://next.nutanix.com/karbon-kubernetes-service-30/kubernetes-dashboard-on-nutanix-karbon-31210
徽章
嗨Thewanandonly,

请参阅Kubernetes文档获取更多信息:
https://kubernetes.io/docs/concepts/configuration/organize-cluster-access-kubeconfig/

总之,你有3个选择:
  1. 将kubecconfig文件放在~/.kube/config中
  2. 将它设置为一个环境变量($ export KUBECONFIG= carbon -kubectl.cfg)
  3. 每次运行kubectl命令时指定它($ kubectl——kubecconfig carbon -kubectl.cfg get pods)
Learn more about our cookies.<\/a>","cookiepolicy.button":"Accept cookies","cookiepolicy.button.deny":"Deny all","cookiepolicy.link":"Cookie settings","cookiepolicy.modal.title":"Cookie settings","cookiepolicy.modal.content":"We use 3 different kinds of cookies. You can choose which cookies you want to accept. We need basic cookies to make this site work, therefore these are the minimum you can select. Learn more about our cookies.<\/a>","cookiepolicy.modal.level1":"Basic
Functional","cookiepolicy.modal.level2":"Normal
Functional + analytics","cookiepolicy.modal.level3":"Complete
Functional + analytics + social media + embedded videos"}}}">
Baidu