<p>I have a <code>Dokerswarm</code> application(.Net) which is using <a href="https://github.com/dotnet/Docker.DotNet/blob/f58748616cc5b679b25496926c5688294c94d850/src/Docker.DotNet/Models/AuthConfig.Generated.cs#L6" rel="nofollow noreferrer">Authconfig</a> class for storing information <code>[username, passord, serveraddress, tokens etc]</code> for authenticating with the registries. The same application I am trying to write in <code>Kubernetes</code> using <a href="https://github.com/kubernetes-client/csharp/" rel="nofollow noreferrer">KubernetesClient</a>.</p>
<p>Can someone please let me know if there is any equivalent of <a href="https://github.com/dotnet/Docker.DotNet/blob/f58748616cc5b679b25496926c5688294c94d850/src/Docker.DotNet/Models/AuthConfig.Generated.cs#L6" rel="nofollow noreferrer">Authconfig </a>class in Kubernetes <code>K8s.Model</code> client also ?</p>

Thor
<p>The similar class for creating connection to the k8s APIServer endpoint would be the following:</p>
<ul>
<li><a href="https://github.com/kubernetes-client/csharp/blob/d66c914c86c4fe59fbe8ce2acf3261dbbb754894/src/KubernetesClient/KubernetesClientConfiguration.ConfigFile.cs#L17" rel="nofollow noreferrer">KubernetesClientConfiguration</a> (in case you have proper KUBECONFIG environment variable set, or at least k8s config on the disk)</li>
</ul>
<p>More specific classes could be found in the folder:</p>
<ul>
<li><a href="https://github.com/kubernetes-client/csharp/tree/master/src/KubernetesClient/KubeConfigModels" rel="nofollow noreferrer">csharp/src/KubernetesClient/KubeConfigModels/</a></li>
</ul>
<p>Usage examples could be found here:</p>
<ul>
<li><a href="https://github.com/kubernetes-client/csharp/tree/master/examples" rel="nofollow noreferrer">csharp/examples/</a></li>
</ul>
<p>I would also recommend to read the following documentation pages:</p>
<ul>
<li><a href="https://kubernetes.io/docs/tasks/administer-cluster/access-cluster-api/" rel="nofollow noreferrer">Access Clusters Using the Kubernetes API</a></li>
<li><a href="https://kubernetes.io/docs/tasks/access-application-cluster/configure-access-multiple-clusters/" rel="nofollow noreferrer">Configure Access to Multiple Clusters</a></li>
</ul>
