<p>Is there an easy way to export kubeconfig file from existing cluster so i can use it in CI/CD ?</p>

Raad Altaie
<p>What kind of cluster is it? A managed(AKS,EKS or GKE etc) one, where is it deployed? Can you ssh in to master node, if yes, please</p>
<p><code>cat /etc/kubernetes/admin.conf</code> or <code>cat ~/.kube/config</code></p>
<p>and copy the file, which is the <strong>kubeconfig</strong> for your cluster.</p>
<p>Other ways to create the kubeconfig, Run the following command</p>
<p><code>kubectl config view --minify</code>, it will display all the info except for the client ca certificate and client key. The location of those keys depends on how the cluster is setup. <code>kubectl config view --raw</code> will show all the configuration (including certificates).</p>
