KubernetesClient 0.8.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.8.0-beta                
NuGet\Install-Package KubernetesClient -Version 0.8.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.8.0-beta" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add KubernetesClient --version 0.8.0-beta                
#r "nuget: KubernetesClient, 0.8.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.8.0-beta&prerelease

// Install KubernetesClient as a Cake Tool
#tool nuget:?package=KubernetesClient&version=0.8.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 (144)

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

Kubernetes support for .NET Core

Microsoft.Orleans.Hosting.Kubernetes

Microsoft Orleans hosting support for Kubernetes

Aspire.Hosting

Core abstractions for the .NET Aspire application model.

Orleans.Clustering.Kubernetes

Microsoft Orleans clustering provider backed by Kubernetes

GitHub repositories (33)

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
15.0.1 447,941 9/11/2024
14.0.12 67,993 9/8/2024
14.0.9 579,914 8/12/2024
14.0.2 1,410,201 5/14/2024
13.0.37 295,953 4/25/2024
13.0.26 530,078 3/9/2024
13.0.11 622,285 1/30/2024
13.0.1 197,468 1/9/2024
12.1.1 4,381,714 9/26/2023
12.0.16 527,428 8/31/2023
11.0.44 2,163,114 7/19/2023
11.0.36 185,761 6/30/2023
11.0.21 295,197 5/19/2023
11.0.9 158,796 5/1/2023
10.1.19 391,052 4/4/2023
10.1.4 293,158 3/5/2023
10.0.31 477,434 2/12/2023
10.0.27 71,632 2/2/2023
10.0.16 4,789,679 1/6/2023
10.0.1 116,572 12/16/2022
9.1.3 389,551 12/6/2022
9.0.38 546,976 10/24/2022
9.0.37 15,226 10/21/2022
9.0.28 217,278 9/27/2022
9.0.25 7,522 9/21/2022
8.0.68 587,908 8/22/2022
8.0.12 749,913 6/29/2022
8.0.8 163,963 6/3/2022
8.0.6 28,659 5/24/2022
8.0.4 213,610 5/12/2022
7.2.19 1,935,502 4/22/2022
7.2.15 161,090 4/19/2022
7.2.10 318,714 4/5/2022
7.2.8 932 4/4/2022
7.2.7 939 4/4/2022
7.1.9 110,109 3/23/2022
7.1.3-g341580fb9b 49,842 2/26/2022
7.0.15 246,667 2/23/2022
7.0.14 16,726 2/20/2022
7.0.13 69,687 2/17/2022
7.0.12 8,532 2/15/2022
7.0.11 34,463 2/8/2022
7.0.10 13,444 2/1/2022
7.0.9 7,314 1/31/2022
7.0.8 236,303 1/26/2022
7.0.7 145,712 1/24/2022
7.0.6 1,436 1/23/2022
7.0.5 492,561 1/11/2022
7.0.4 122,587 12/23/2021
7.0.3 7,635 12/19/2021
7.0.2 659 12/19/2021
7.0.1 71,619 12/13/2021
6.0.26 480,028 12/3/2021
6.0.25 135,114 11/16/2021
6.0.24 22,283 11/12/2021
6.0.23 1,871,764 11/3/2021
6.0.22 2,404 11/2/2021
6.0.21 44,935 10/26/2021
6.0.20 4,323 10/24/2021
6.0.19 369,343 10/20/2021
6.0.18 711 10/20/2021
6.0.17 719 10/20/2021
6.0.16 737 10/20/2021
6.0.15 14,393 10/14/2021
6.0.14 20,789 10/14/2021
6.0.13 23,478 10/11/2021
6.0.12 1,560 10/11/2021
6.0.11 90,659 9/29/2021
6.0.10 2,946 9/29/2021
6.0.9 2,057 9/29/2021
6.0.8 45,792 9/25/2021
6.0.7 21,127 9/21/2021
6.0.6 8,130 9/17/2021
6.0.5 1,137 9/17/2021
6.0.4 856 9/17/2021
6.0.3 8,581 9/14/2021
6.0.2 851 9/14/2021
6.0.1 253,829 8/15/2021
5.0.20 1,494,589 8/10/2021
5.0.19 5,516 8/9/2021
5.0.18 843 8/9/2021
5.0.17 21,164 8/4/2021
5.0.16 877 8/4/2021
5.0.15 1,380,417 7/22/2021
5.0.13 220,953 6/27/2021
5.0.12 67,077 6/21/2021
5.0.11 11,730 6/14/2021
5.0.10 97,659 5/26/2021
5.0.9 5,398 5/24/2021
5.0.8 25,267 5/21/2021
5.0.7 895 5/21/2021
5.0.6 5,912 5/19/2021
5.0.5 55,301 5/14/2021
5.0.4 142,711 4/28/2021
5.0.3 10,952 4/24/2021
5.0.2 14,245 4/20/2021
5.0.1 81,048 4/9/2021
4.0.26 12,254,045 4/9/2021
4.0.25 5,588 4/8/2021
4.0.24 980 4/8/2021
4.0.23 41,194 4/5/2021
4.0.22 76,133 4/2/2021
4.0.21 143,578 3/24/2021
4.0.20 43,873 3/18/2021
4.0.19 6,872 3/12/2021
4.0.16 149,969 3/2/2021
4.0.15 6,775 2/27/2021
4.0.14 143,130 2/25/2021
4.0.13 10,493 2/19/2021
4.0.12 17,821 2/18/2021
4.0.11 20,272 2/17/2021
4.0.10 536,987 2/1/2021
4.0.9 29,549 1/28/2021
4.0.8 867 1/27/2021
4.0.7 1,376 1/27/2021
4.0.5 67,837 1/19/2021
4.0.4 202,888 1/8/2021
4.0.3 238,456 12/19/2020
4.0.2 3,502 12/17/2020
4.0.1 23,187 12/14/2020
3.0.16 490,424 11/25/2020
3.0.15 795 11/25/2020
3.0.14 64,169 11/23/2020
3.0.13 1,079 11/22/2020
3.0.12 3,713,818 11/19/2020
3.0.11 2,281 11/18/2020
3.0.8 8,893 11/13/2020
3.0.7 36,556 11/1/2020
3.0.6 863 11/1/2020
3.0.5 28,637 10/30/2020
3.0.4 7,290 10/28/2020
3.0.3 1,362 10/28/2020
3.0.2 1,498 10/27/2020
3.0.1 90,102 10/27/2020
2.0.34 52,575 10/23/2020
2.0.33 123,983 9/28/2020
2.0.32 2,357 9/25/2020
2.0.31 900 9/25/2020
2.0.30 46,785 9/19/2020
2.0.29 3,561,612 8/10/2020
2.0.28 12,146 8/8/2020
2.0.27 35,009 8/3/2020
2.0.26 428,648 6/28/2020
2.0.25 396,812 5/29/2020
2.0.22 23,781 5/18/2020
2.0.21 42,322 5/11/2020
2.0.20 777 5/11/2020
2.0.19 810 5/11/2020
2.0.18 14,049 5/4/2020
2.0.17 9,188 4/28/2020
2.0.16 182,073 4/23/2020
2.0.15 1,423 4/22/2020
2.0.14 837 4/22/2020
2.0.13 793 4/22/2020
2.0.12 933 4/22/2020
2.0.11 860 4/22/2020
2.0.10 2,390 4/20/2020
2.0.9 1,070 4/20/2020
2.0.8 838 4/20/2020
2.0.7 817 4/20/2020
2.0.6 12,770 4/17/2020
2.0.5 1,151 4/17/2020
2.0.3 2,786 4/16/2020
2.0.2 273,033 4/15/2020
2.0.1 553,631 4/11/2020
1.6.35 220,057 4/9/2020
1.6.34 807 4/9/2020
1.6.33 25,102 4/6/2020
1.6.32 933 4/6/2020
1.6.31 1,069 4/6/2020
1.6.30 26,892 4/3/2020
1.6.29 70,701 4/1/2020
1.6.28 8,328 3/25/2020
1.6.27 24,994 3/23/2020
1.6.25 853 3/23/2020
1.6.24 10,673 3/19/2020
1.6.23 116,269 3/17/2020
1.6.22 851 3/17/2020
1.6.21 6,498 3/14/2020
1.6.20 3,847 3/11/2020
1.6.20-gc8de0ca263 540 3/10/2020
1.6.19-g7749ae07c8 566 3/10/2020
1.6.18-g0468a66de4 1,251 3/9/2020
1.6.17-g435ab5cd15 928 3/9/2020
1.6.16-gb07e78afa4 607 3/5/2020
1.6.15-ge11cc58e56 27,725 2/14/2020
1.6.14-gba9755b626 643 2/9/2020
1.6.13-gfa515869e2 737 1/23/2020
1.6.12 96,240 1/21/2020
1.6.11 54,261 1/10/2020
1.6.10 3,174,131 1/7/2020
1.6.9 1,049 1/6/2020
1.6.8 53,304 12/21/2019
1.6.7 2,351 12/20/2019
1.6.6 28,440 12/6/2019
1.6.5 63,894 11/22/2019
1.6.4 20,991 11/9/2019
1.6.3 555,416 10/22/2019
1.6.2 1,000 10/22/2019
1.6.1 70,066 10/2/2019
1.5.28 21,295 9/30/2019
1.5.27 917 9/30/2019
1.5.26 30,809 9/24/2019
1.5.25 279,500 7/25/2019
1.5.19 197,144 5/12/2019
1.5.18 61,645 4/1/2019
1.5.17 31,050 3/28/2019
1.5.16 4,776 3/26/2019
1.5.14 1,836 3/25/2019
1.5.13 1,925 3/24/2019
1.5.12 1,931 3/23/2019
1.5.11 1,594 3/23/2019
1.5.10 1,751 3/23/2019
1.5.9 1,821 3/22/2019
1.5.8 1,664 3/22/2019
1.5.7 1,694 3/22/2019
1.5.6 1,642 3/21/2019
1.5.5 2,832 3/20/2019
1.5.4 2,998 3/20/2019
1.5.3 1,480 3/20/2019
1.5.2 1,775 3/20/2019
1.5.1-g60ffd20a7c 6,952 3/12/2019
1.4.14-g5422eb0bcc 1,593 2/27/2019
1.4.13-g948d78c1bd 1,164 2/27/2019
1.4.12-ge95e01c6e9 2,953 2/19/2019
1.4.11-g406df57f9d 1,244 2/15/2019
1.4.9-g9f1669b0cb 1,834 2/12/2019
1.4.8-g9bbe42201f 1,291 2/7/2019
1.4.7-g4d193e4c1c 1,238 2/6/2019
1.4.5-g588807fb44 1,308 1/29/2019
1.4.4-g972699bc71 1,939 1/24/2019
1.4.3-g29b066286f 1,187 1/24/2019
1.4.2-g05273b7db7 58,468 12/24/2018
1.4.1-g7e907d7c6f 1,128 3/12/2019
1.4.1-g1600e44b00 1,280 12/12/2018
1.3.9-gb7f79c924f 1,340 12/12/2018
1.3.8-g6bc54a68c4 1,240 12/11/2018
1.3.7-g7c9cc88d38 11,845 10/27/2018
1.3.6-g355d4a3927 1,294 10/27/2018
1.3.5-g0b1669d5a5 1,272 10/27/2018
1.3.4-gaa1c880301 1,300 10/27/2018
1.3.3-g25523d1985 1,365 10/26/2018
1.3.2-g99dc2f7aaf 1,332 10/26/2018
1.3.1-gdf3381607a 2,340 10/3/2018
1.2.8-g9372e3291f 1,817 9/27/2018
1.2.7-g09a8c8773a 2,602 9/13/2018
1.2.6-g3cee7fbd93 1,495 9/10/2018
1.2.5-g397a582ff0 1,414 8/19/2018
1.2.4-g722d4e09d3 1,476 8/7/2018
1.2.3-g3551f03258 13,088 7/19/2018
1.2.2-gac99f43c84 2,129 7/17/2018
1.2.1-gaec5c99162 1,502 7/14/2018
1.2.0 260,418 7/14/2018
1.1.14-gdae6d62cba 1,517 7/9/2018
1.1.13-g8c3152af97 1,541 7/9/2018
1.1.12-gd01446718d 1,517 7/9/2018
1.1.11-g3f69820739 3,133 7/2/2018
1.1.10-gbb11e5f5ce 1,406 7/2/2018
1.1.0-gf488d54ce7 1,594 6/11/2018
1.1.0-gc1543b527e 1,509 6/25/2018
1.1.0-gbc1cb6205c 1,497 6/27/2018
1.1.0-ga358cb9afd 1,496 6/7/2018
1.1.0-g7723604b7e 1,531 6/25/2018
1.1.0-g6eb5555145 1,489 6/13/2018
1.1.0-g6e0aec994e 1,578 6/2/2018
1.1.0-g49bb82b15d 1,448 7/2/2018
1.0.0 23,458 5/26/2018
1.0.0-ge6c1177471 1,394 5/26/2018
1.0.0-g9253eeb2eb 1,565 5/30/2018
1.0.0-g86abfc1b7c 1,498 6/1/2018
0.8.0-beta-g307c77bf04 1,531 5/23/2018
0.8.0-beta 1,441 5/21/2018
0.7.0-beta-g6728505e34 1,430 5/23/2018
0.7.0-beta 4,723 4/20/2018
0.6.0-beta 5,281 3/22/2018
0.5.0-beta 1,549 3/18/2018
0.4.0-beta 7,626 2/2/2018
0.3.0-beta 2,723 11/21/2017
0.2.0-beta 1,655 10/21/2017
0.1.0-beta 1,699 9/13/2017