0

What the role of kube-Config and how to use this in our go program for simple operations?

Ajeet Rai
  • 91
  • 1
  • 1
  • 3

1 Answers1

1

There is an example in client-go library you can use for learning. You can check the source, i am not including it here, as it a bit heavy.

But in general:

  • You read config from kubeconfig using kubernetes.NewForConfig
  • And using clientset returned by the previous command your app performing API requests.
Oleg Butuzov
  • 4,795
  • 2
  • 24
  • 33