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

Ajeet Rai
<p>There is an example in <a href="https://github.com/kubernetes/client-go/" rel="nofollow noreferrer"><code>client-go</code></a> library you can use for learning. You can check <a href="https://github.com/kubernetes/client-go/blob/master/examples/out-of-cluster-client-configuration/main.go" rel="nofollow noreferrer"><code>the source</code></a>, i am not including it here, as it a bit heavy.</p>
<p>But in general:</p>
<ul>
<li>You read config from kubeconfig using <code>kubernetes.NewForConfig</code></li>
<li>And using <code>clientset</code> returned by the previous command your app performing API requests.</li>
</ul>
