Playing with Karbon | Nutanix Community
Skip to main content
Solved

Playing with Karbon

  • August 21, 2019
  • 2 replies
  • 1952 views

Hello All

I am new to Nutanix and new to Kubernetes so my apologises for the newbie questions?

I've played with docker and kubernetes on my Windows machine but having a brain freeze transitioning to the karbon cluster.

How do I get kubectl to use my configure file I downloaded from Karbon?

Currently kubectl is only talking to my docker VM's?

Many thanks in advance
J

Best answer by michaelhaigh

Hi Thewanandonly,

Please see this Kubernetes documentation for more information:
https://kubernetes.io/docs/concepts/configuration/organize-cluster-access-kubeconfig/

In summary, you have 3 options:
  1. Place the kubeconfig file in ~/.kube/config
  2. Set it as an environment variable ($ export KUBECONFIG=karbon-kubectl.cfg)
  3. Specify it each time you run a kubectl command ($ kubectl --kubeconfig karbon-kubectl.cfg get pods)
View original
Did this topic help you find an answer to your question?
This topic has been closed for comments

2 replies

andymlloyd
Forum|alt.badge.img+2
  • Trailblazer
  • 13 replies
  • August 21, 2019

Forum|alt.badge.img
  • Nutanix Employee
  • 2 replies
  • Answer
  • September 4, 2019
Hi Thewanandonly,

Please see this Kubernetes documentation for more information:
https://kubernetes.io/docs/concepts/configuration/organize-cluster-access-kubeconfig/

In summary, you have 3 options:
  1. Place the kubeconfig file in ~/.kube/config
  2. Set it as an environment variable ($ export KUBECONFIG=karbon-kubectl.cfg)
  3. Specify it each time you run a kubectl command ($ kubectl --kubeconfig karbon-kubectl.cfg get pods)