Search code examples
dockerkubernetes.net-coredocker-swarmk3s

Equivalent Docker.DotNet AuthConfig class in KubernetesClient for Dotnet application


I have a Dokerswarm application(.Net) which is using Authconfig class for storing information [username, passord, serveraddress, tokens etc] for authenticating with the registries. The same application I am trying to write in Kubernetes using KubernetesClient.

Can someone please let me know if there is any equivalent of Authconfig class in Kubernetes K8s.Model client also ?


Solution

  • The similar class for creating connection to the k8s APIServer endpoint would be the following:

    More specific classes could be found in the folder:

    Usage examples could be found here:

    I would also recommend to read the following documentation pages: