我是Nutanix的新手,是Kubernetes的新手,所以我为新手问题道歉吗?
我在Windows机器上与Docker和Kubernetes一起玩过,但是大脑冻结过渡到Karbon群集。
如何让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"}">