KubernetesClient 0.7.0-beta

This is a prerelease version of KubernetesClient.
There is a newer version of this package available.
See the version list below for details.
dotnet add package KubernetesClient --version 0.7.0-beta
NuGet\Install-Package KubernetesClient -Version 0.7.0-beta
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="KubernetesClient" Version="0.7.0-beta" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add KubernetesClient --version 0.7.0-beta
#r "nuget: KubernetesClient, 0.7.0-beta"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install KubernetesClient as a Cake Addin
#addin nuget:?package=KubernetesClient&version=0.7.0-beta&prerelease

// Install KubernetesClient as a Cake Tool
#tool nuget:?package=KubernetesClient&version=0.7.0-beta&prerelease

Kubernetes C# Client

Travis Client Capabilities Client Support Level

Usage

Nuget Package

dotnet add package KubernetesClient

Generating the Client Code

Prerequisites

You'll need a Linux machine with Docker.

The generated code works on all platforms supported by .NET or .NET Core.

Check out the generator project into some other directory (henceforth $GEN_DIR)

cd $GEN_DIR/..
git clone https://github.com/kubernetes-client/gen

Generating code

# Where REPO_DIR points to the root of the csharp repository
cd ${REPO_DIR}/csharp/src
${GEN_DIR}/openapi/csharp.sh generated ../csharp.settings

Usage

Running the Examples

git clone git@github.com:kubernetes-client/csharp.git
cd csharp\examples\simple
dotnet run

Known issues

While preferred way of connecting to a remote cluster from local machine is:

var config = KubernetesClientConfiguration.BuildConfigFromConfigFile();
var client = new Kubernetes(config);

Not all auth providers are supported at moment #91, but you still can connect to cluster by starting proxy:

$ kubectl proxy
Starting to serve on 127.0.0.1:8001

and changing config:

var config = new KubernetesClientConfiguration {  Host = "http://127.0.0.1:8001" };

Notice that this is a workaround and is not recommended for production use

Testing

The project uses XUnit as unit testing framework.

To run the tests

cd csharp\tests
dotnet restore
dotnet test
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp1.0 was computed.  netcoreapp1.1 was computed.  netcoreapp2.0 was computed.  netcoreapp2.1 is compatible.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard1.4 is compatible.  netstandard1.5 was computed.  netstandard1.6 was computed.  netstandard2.0 was computed.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen30 was computed.  tizen40 was computed.  tizen60 was computed. 
Universal Windows Platform uap was computed.  uap10.0 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (71)

Showing the top 5 NuGet packages that depend on KubernetesClient:

Package Downloads
AspNetCore.HealthChecks.UI

HealthChecks.UI is a ASP.NET Core UI viewer of ASP.NET Core HealthChecks. For more information see https://github.com/Xabaril/AspNetCore.Diagnostics.HealthChecks

Microsoft.ApplicationInsights.Kubernetes The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

Kubernetes support for .NET Core

Microsoft.Orleans.Hosting.Kubernetes The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

Microsoft Orleans hosting support for Kubernetes

Orleans.Clustering.Kubernetes

Microsoft Orleans clustering provider backed by Kubernetes

Elvia.Configuration

Library for handling configuration from secret storage.

GitHub repositories (29)

Showing the top 5 popular GitHub repositories that depend on KubernetesClient:

Repository Stars
dotnet/orleans
Cloud Native application framework for .NET
microsoft/reverse-proxy
A toolkit for developing high-performance HTTP reverse proxy applications.
dotnetcore/CAP
Distributed transaction solution in micro-service base on eventually consistency, also an eventbus with Outbox pattern
dotnet/tye
Tye is a tool that makes developing, testing, and deploying microservices and distributed applications easier. Project Tye includes a local orchestrator to make developing microservices easier and the ability to deploy microservices to Kubernetes with minimal configuration.
Xabaril/AspNetCore.Diagnostics.HealthChecks
Enterprise HealthChecks for ASP.NET Core Diagnostics Package
Version Downloads Last updated
14.0.2 49,679 5/14/2024
13.0.37 74,534 4/25/2024
13.0.26 182,056 3/9/2024
13.0.11 314,880 1/30/2024
13.0.1 130,398 1/9/2024
12.1.1 1,620,479 9/26/2023
12.0.16 350,802 8/31/2023
11.0.44 1,558,431 7/19/2023
11.0.36 171,149 6/30/2023
11.0.21 251,657 5/19/2023
11.0.9 140,470 5/1/2023
10.1.19 299,058 4/4/2023
10.1.4 252,292 3/5/2023
10.0.31 398,427 2/12/2023
10.0.27 65,047 2/2/2023
10.0.16 3,595,369 1/6/2023
10.0.1 110,687 12/16/2022
9.1.3 310,272 12/6/2022
9.0.38 418,801 10/24/2022
9.0.37 9,383 10/21/2022
9.0.28 207,747 9/27/2022
9.0.25 7,162 9/21/2022
8.0.68 544,293 8/22/2022
8.0.12 576,693 6/29/2022
8.0.8 160,458 6/3/2022
8.0.6 25,978 5/24/2022
8.0.4 202,356 5/12/2022
7.2.19 1,739,741 4/22/2022
7.2.15 154,835 4/19/2022
7.2.10 258,437 4/5/2022
7.2.8 851 4/4/2022
7.2.7 850 4/4/2022
7.1.9 86,913 3/23/2022
7.1.3-g341580fb9b 47,882 2/26/2022
7.0.15 233,134 2/23/2022
7.0.14 15,384 2/20/2022
7.0.13 56,683 2/17/2022
7.0.12 8,386 2/15/2022
7.0.11 33,912 2/8/2022
7.0.10 12,757 2/1/2022
7.0.9 3,806 1/31/2022
7.0.8 226,948 1/26/2022
7.0.7 139,067 1/24/2022
7.0.6 1,339 1/23/2022
7.0.5 441,822 1/11/2022
7.0.4 119,940 12/23/2021
7.0.3 7,567 12/19/2021
7.0.2 588 12/19/2021
7.0.1 64,748 12/13/2021
6.0.26 455,118 12/3/2021
6.0.25 118,749 11/16/2021
6.0.24 21,572 11/12/2021
6.0.23 1,766,280 11/3/2021
6.0.22 2,302 11/2/2021
6.0.21 43,416 10/26/2021
6.0.20 3,983 10/24/2021
6.0.19 335,344 10/20/2021
6.0.18 641 10/20/2021
6.0.17 652 10/20/2021
6.0.16 669 10/20/2021
6.0.15 14,068 10/14/2021
6.0.14 18,260 10/14/2021
6.0.13 22,750 10/11/2021
6.0.12 1,484 10/11/2021
6.0.11 81,019 9/29/2021
6.0.10 2,251 9/29/2021
6.0.9 1,946 9/29/2021
6.0.8 42,828 9/25/2021
6.0.7 21,013 9/21/2021
6.0.6 7,801 9/17/2021
6.0.5 1,040 9/17/2021
6.0.4 783 9/17/2021
6.0.3 7,763 9/14/2021
6.0.2 775 9/14/2021
6.0.1 241,354 8/15/2021
5.0.20 1,285,441 8/10/2021
5.0.19 5,250 8/9/2021
5.0.18 775 8/9/2021
5.0.17 20,948 8/4/2021
5.0.16 792 8/4/2021
5.0.15 1,313,073 7/22/2021
5.0.13 200,784 6/27/2021
5.0.12 66,850 6/21/2021
5.0.11 11,379 6/14/2021
5.0.10 94,962 5/26/2021
5.0.9 5,306 5/24/2021
5.0.8 24,573 5/21/2021
5.0.7 832 5/21/2021
5.0.6 5,833 5/19/2021
5.0.5 53,917 5/14/2021
5.0.4 136,797 4/28/2021
5.0.3 10,802 4/24/2021
5.0.2 13,453 4/20/2021
5.0.1 76,585 4/9/2021
4.0.26 10,654,669 4/9/2021
4.0.25 5,447 4/8/2021
4.0.24 897 4/8/2021
4.0.23 40,877 4/5/2021
4.0.22 75,644 4/2/2021
4.0.21 136,324 3/24/2021
4.0.20 43,724 3/18/2021
4.0.19 6,683 3/12/2021
4.0.16 140,901 3/2/2021
4.0.15 6,634 2/27/2021
4.0.14 111,625 2/25/2021
4.0.13 10,380 2/19/2021
4.0.12 17,750 2/18/2021
4.0.11 20,197 2/17/2021
4.0.10 525,605 2/1/2021
4.0.9 29,364 1/28/2021
4.0.8 764 1/27/2021
4.0.7 1,307 1/27/2021
4.0.5 66,903 1/19/2021
4.0.4 201,919 1/8/2021
4.0.3 226,593 12/19/2020
4.0.2 3,443 12/17/2020
4.0.1 23,064 12/14/2020
3.0.16 431,127 11/25/2020
3.0.15 736 11/25/2020
3.0.14 63,971 11/23/2020
3.0.13 1,022 11/22/2020
3.0.12 3,552,272 11/19/2020
3.0.11 2,221 11/18/2020
3.0.8 8,722 11/13/2020
3.0.7 36,147 11/1/2020
3.0.6 802 11/1/2020
3.0.5 27,893 10/30/2020
3.0.4 7,100 10/28/2020
3.0.3 1,306 10/28/2020
3.0.2 1,431 10/27/2020
3.0.1 89,932 10/27/2020
2.0.34 51,406 10/23/2020
2.0.33 122,485 9/28/2020
2.0.32 2,046 9/25/2020
2.0.31 840 9/25/2020
2.0.30 43,345 9/19/2020
2.0.29 3,416,997 8/10/2020
2.0.28 12,085 8/8/2020
2.0.27 34,553 8/3/2020
2.0.26 422,178 6/28/2020
2.0.25 389,292 5/29/2020
2.0.22 23,707 5/18/2020
2.0.21 40,978 5/11/2020
2.0.20 715 5/11/2020
2.0.19 752 5/11/2020
2.0.18 13,802 5/4/2020
2.0.17 9,110 4/28/2020
2.0.16 139,914 4/23/2020
2.0.15 1,367 4/22/2020
2.0.14 778 4/22/2020
2.0.13 734 4/22/2020
2.0.12 872 4/22/2020
2.0.11 784 4/22/2020
2.0.10 2,292 4/20/2020
2.0.9 958 4/20/2020
2.0.8 773 4/20/2020
2.0.7 761 4/20/2020
2.0.6 12,636 4/17/2020
2.0.5 1,091 4/17/2020
2.0.3 2,629 4/16/2020
2.0.2 272,875 4/15/2020
2.0.1 494,432 4/11/2020
1.6.35 217,808 4/9/2020
1.6.34 748 4/9/2020
1.6.33 24,970 4/6/2020
1.6.32 879 4/6/2020
1.6.31 1,011 4/6/2020
1.6.30 26,303 4/3/2020
1.6.29 68,710 4/1/2020
1.6.28 8,264 3/25/2020
1.6.27 24,755 3/23/2020
1.6.25 792 3/23/2020
1.6.24 10,620 3/19/2020
1.6.23 116,214 3/17/2020
1.6.22 792 3/17/2020
1.6.21 6,377 3/14/2020
1.6.20 3,763 3/11/2020
1.6.20-gc8de0ca263 490 3/10/2020
1.6.19-g7749ae07c8 516 3/10/2020
1.6.18-g0468a66de4 1,196 3/9/2020
1.6.17-g435ab5cd15 875 3/9/2020
1.6.16-gb07e78afa4 555 3/5/2020
1.6.15-ge11cc58e56 27,673 2/14/2020
1.6.14-gba9755b626 589 2/9/2020
1.6.13-gfa515869e2 681 1/23/2020
1.6.12 95,729 1/21/2020
1.6.11 54,185 1/10/2020
1.6.10 3,008,617 1/7/2020
1.6.9 990 1/6/2020
1.6.8 52,497 12/21/2019
1.6.7 2,296 12/20/2019
1.6.6 28,212 12/6/2019
1.6.5 62,457 11/22/2019
1.6.4 20,598 11/9/2019
1.6.3 553,094 10/22/2019
1.6.2 938 10/22/2019
1.6.1 67,835 10/2/2019
1.5.28 21,094 9/30/2019
1.5.27 861 9/30/2019
1.5.26 29,973 9/24/2019
1.5.25 277,696 7/25/2019
1.5.19 195,671 5/12/2019
1.5.18 59,371 4/1/2019
1.5.17 30,973 3/28/2019
1.5.16 4,716 3/26/2019
1.5.14 1,769 3/25/2019
1.5.13 1,866 3/24/2019
1.5.12 1,866 3/23/2019
1.5.11 1,535 3/23/2019
1.5.10 1,680 3/23/2019
1.5.9 1,765 3/22/2019
1.5.8 1,607 3/22/2019
1.5.7 1,631 3/22/2019
1.5.6 1,580 3/21/2019
1.5.5 2,766 3/20/2019
1.5.4 2,937 3/20/2019
1.5.3 1,414 3/20/2019
1.5.2 1,712 3/20/2019
1.5.1-g60ffd20a7c 6,817 3/12/2019
1.4.14-g5422eb0bcc 1,528 2/27/2019
1.4.13-g948d78c1bd 1,099 2/27/2019
1.4.12-ge95e01c6e9 2,896 2/19/2019
1.4.11-g406df57f9d 1,149 2/15/2019
1.4.9-g9f1669b0cb 1,783 2/12/2019
1.4.8-g9bbe42201f 1,239 2/7/2019
1.4.7-g4d193e4c1c 1,188 2/6/2019
1.4.5-g588807fb44 1,251 1/29/2019
1.4.4-g972699bc71 1,866 1/24/2019
1.4.3-g29b066286f 1,128 1/24/2019
1.4.2-g05273b7db7 58,410 12/24/2018
1.4.1-g7e907d7c6f 1,069 3/12/2019
1.4.1-g1600e44b00 1,212 12/12/2018
1.3.9-gb7f79c924f 1,283 12/12/2018
1.3.8-g6bc54a68c4 1,180 12/11/2018
1.3.7-g7c9cc88d38 9,015 10/27/2018
1.3.6-g355d4a3927 1,235 10/27/2018
1.3.5-g0b1669d5a5 1,211 10/27/2018
1.3.4-gaa1c880301 1,249 10/27/2018
1.3.3-g25523d1985 1,290 10/26/2018
1.3.2-g99dc2f7aaf 1,275 10/26/2018
1.3.1-gdf3381607a 2,276 10/3/2018
1.2.8-g9372e3291f 1,759 9/27/2018
1.2.7-g09a8c8773a 2,527 9/13/2018
1.2.6-g3cee7fbd93 1,435 9/10/2018
1.2.5-g397a582ff0 1,356 8/19/2018
1.2.4-g722d4e09d3 1,413 8/7/2018
1.2.3-g3551f03258 13,025 7/19/2018
1.2.2-gac99f43c84 2,059 7/17/2018
1.2.1-gaec5c99162 1,447 7/14/2018
1.2.0 251,906 7/14/2018
1.1.14-gdae6d62cba 1,456 7/9/2018
1.1.13-g8c3152af97 1,484 7/9/2018
1.1.12-gd01446718d 1,458 7/9/2018
1.1.11-g3f69820739 3,078 7/2/2018
1.1.10-gbb11e5f5ce 1,347 7/2/2018
1.1.0-gf488d54ce7 1,536 6/11/2018
1.1.0-gc1543b527e 1,449 6/25/2018
1.1.0-gbc1cb6205c 1,426 6/27/2018
1.1.0-ga358cb9afd 1,438 6/7/2018
1.1.0-g7723604b7e 1,474 6/25/2018
1.1.0-g6eb5555145 1,431 6/13/2018
1.1.0-g6e0aec994e 1,517 6/2/2018
1.1.0-g49bb82b15d 1,345 7/2/2018
1.0.0 21,115 5/26/2018
1.0.0-ge6c1177471 1,335 5/26/2018
1.0.0-g9253eeb2eb 1,506 5/30/2018
1.0.0-g86abfc1b7c 1,427 6/1/2018
0.8.0-beta-g307c77bf04 1,471 5/23/2018
0.8.0-beta 1,380 5/21/2018
0.7.0-beta-g6728505e34 1,378 5/23/2018
0.7.0-beta 4,589 4/20/2018
0.6.0-beta 5,216 3/22/2018
0.5.0-beta 1,491 3/18/2018
0.4.0-beta 7,496 2/2/2018
0.3.0-beta 2,652 11/21/2017
0.2.0-beta 1,561 10/21/2017
0.1.0-beta 1,622 9/13/2017