我对Nutanix和Kubernetes都是新手所以我为新手问题道歉?
我在我的Windows电脑上玩过docker和kubernetes,但是在过渡到碳簇的时候大脑冻结了。
如何让kubectl使用我从Karbon下载的配置文件?
目前kubectl只和我的docker VM对话?
非常感谢
J
最佳答案michaelhaigh
\n\nPlease see this Kubernetes documentation for more information:
\nhttps:\/\/kubernetes.io\/docs\/concepts\/configuration\/organize-cluster-access-kubeconfig\/<\/a>
\n
\nIn summary, you have 3 options:
\n
- \n
- Place the kubeconfig file in ~\/.kube\/config \n
- Set it as an environment variable ($ export KUBECONFIG=karbon-kubectl.cfg) \n
- Specify it each time you run a kubectl command ($ kubectl --kubeconfig karbon-kubectl.cfg get pods) \n<\/ol>","className":"post__content__best_answer"}">