What the role of kube-Config and how to use this in our go program for simple operations?
Asked
Active
Viewed 101 times
1 Answers
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