Skip to content
Kubernetes .Net API generator
Branch: master
Clone or download
Type Name Latest commit message Commit time
Failed to load latest commit information.
KubernetesService.Test Issue 'UnsupportedMediaType' on JSON requests fix Nov 6, 2017
KubernetesService Issue 'UnsupportedMediaType' on JSON requests fix Nov 6, 2017
.gitignore Initial commit Nov 1, 2017
LICENSE Update Nov 5, 2017

.Net Kuberentes API

.Net Platform State
4.5.2 x64 Build status


Package Manager

Install-Package KubernetesService

.Net Cli

dotnet add package KubernetesService

Packet Cli

paket add KubernetesService

Code usage

//Creating user configuration provider
IConfigurationProvider confProvider = new CConfigurartionProviderUserProfile();

//Creating authentication provider
IAuthenticationProvider authProv = new CSSLAuthenticationProvider(confProvider);

//Creating service instance and connecting
CKubernetesService service = CKubernetesService.Connect(new Uri("https://<you_cluster_here>"), authProv);

var retVal = service.Service.ListAppsV1beta1NamespacedDeployment("default");



Current version implements common authentification scenario.

  1. Reading configuration from %USERPROFILE%.kube\config
  2. Establishing a SSL connection to REST API endpoint

For extending authentification functionality you have to implement two interfaces

  1. Reading client configuration (ex. file, http,)
    public interface IConfigurationProvider
        CKubernatesConfig GetConfiguration();
  1. Applying configuration to underlying HttpClientHandler. Kubernetes offcially support SSL/TLS, user\password pair, OAuth token Currently implemented SSL/TLS in this realese. Other scenarios planned for future
    public interface IAuthenticationProvider
        IConfigurationProvider ConfigurationProvider { get; }
        void ApplyConfiguration(Uri endPoint, WebRequestHandler handler);

Note: parameter Uri endPoint have exactly match cluser endpoint for configuration


All question you can address to project's mailing list

You can’t perform that action at this time.