KubernetesClient 1.2.0
See the version list below for details.
dotnet add package KubernetesClient --version 1.2.0
NuGet\Install-Package KubernetesClient -Version 1.2.0
<PackageReference Include="KubernetesClient" Version="1.2.0" />
paket add KubernetesClient --version 1.2.0
#r "nuget: KubernetesClient, 1.2.0"
// Install KubernetesClient as a Cake Addin #addin nuget:?package=KubernetesClient&version=1.2.0 // Install KubernetesClient as a Cake Tool #tool nuget:?package=KubernetesClient&version=1.2.0
Kubernetes C# Client
Usage
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 | Versions 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. |
-
.NETCoreApp 2.1
- Fractions (>= 3.0.1)
- Microsoft.AspNetCore.JsonPatch (>= 1.1.2)
- Microsoft.AspNetCore.WebUtilities (>= 1.1.2)
- Microsoft.Rest.ClientRuntime (>= 2.3.10)
- Newtonsoft.Json (>= 10.0.2)
- Portable.BouncyCastle (>= 1.8.1.3)
- System.ValueTuple (>= 4.4.0)
- YamlDotNet.Signed (>= 4.2.3)
-
.NETStandard 1.4
- Fractions (>= 3.0.1)
- Microsoft.AspNetCore.JsonPatch (>= 1.1.2)
- Microsoft.AspNetCore.WebUtilities (>= 1.1.2)
- Microsoft.Rest.ClientRuntime (>= 2.3.10)
- NETStandard.Library (>= 1.6.1)
- Newtonsoft.Json (>= 10.0.2)
- Portable.BouncyCastle (>= 1.8.1.3)
- System.Net.WebSockets.Client (>= 4.3.2)
- System.ValueTuple (>= 4.4.0)
- YamlDotNet.Signed (>= 4.2.3)
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 (32)
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 | 409,554 | 9/11/2024 |
14.0.12 | 62,148 | 9/8/2024 |
14.0.9 | 569,077 | 8/12/2024 |
14.0.2 | 1,373,139 | 5/14/2024 |
13.0.37 | 293,312 | 4/25/2024 |
13.0.26 | 525,200 | 3/9/2024 |
13.0.11 | 619,769 | 1/30/2024 |
13.0.1 | 196,115 | 1/9/2024 |
12.1.1 | 4,331,277 | 9/26/2023 |
12.0.16 | 525,378 | 8/31/2023 |
11.0.44 | 2,153,478 | 7/19/2023 |
11.0.36 | 185,699 | 6/30/2023 |
11.0.21 | 294,610 | 5/19/2023 |
11.0.9 | 158,538 | 5/1/2023 |
10.1.19 | 389,221 | 4/4/2023 |
10.1.4 | 292,642 | 3/5/2023 |
10.0.31 | 475,547 | 2/12/2023 |
10.0.27 | 71,526 | 2/2/2023 |
10.0.16 | 4,774,065 | 1/6/2023 |
10.0.1 | 116,516 | 12/16/2022 |
9.1.3 | 387,955 | 12/6/2022 |
9.0.38 | 545,797 | 10/24/2022 |
9.0.37 | 15,152 | 10/21/2022 |
9.0.28 | 217,146 | 9/27/2022 |
9.0.25 | 7,521 | 9/21/2022 |
8.0.68 | 587,387 | 8/22/2022 |
8.0.12 | 746,156 | 6/29/2022 |
8.0.8 | 163,887 | 6/3/2022 |
8.0.6 | 28,562 | 5/24/2022 |
8.0.4 | 213,403 | 5/12/2022 |
7.2.19 | 1,930,882 | 4/22/2022 |
7.2.15 | 160,985 | 4/19/2022 |
7.2.10 | 317,727 | 4/5/2022 |
7.2.8 | 931 | 4/4/2022 |
7.2.7 | 938 | 4/4/2022 |
7.1.9 | 109,680 | 3/23/2022 |
7.1.3-g341580fb9b | 49,786 | 2/26/2022 |
7.0.15 | 246,500 | 2/23/2022 |
7.0.14 | 16,687 | 2/20/2022 |
7.0.13 | 69,494 | 2/17/2022 |
7.0.12 | 8,531 | 2/15/2022 |
7.0.11 | 34,457 | 2/8/2022 |
7.0.10 | 13,422 | 2/1/2022 |
7.0.9 | 7,298 | 1/31/2022 |
7.0.8 | 236,281 | 1/26/2022 |
7.0.7 | 145,597 | 1/24/2022 |
7.0.6 | 1,435 | 1/23/2022 |
7.0.5 | 491,755 | 1/11/2022 |
7.0.4 | 122,540 | 12/23/2021 |
7.0.3 | 7,634 | 12/19/2021 |
7.0.2 | 658 | 12/19/2021 |
7.0.1 | 71,496 | 12/13/2021 |
6.0.26 | 479,515 | 12/3/2021 |
6.0.25 | 134,767 | 11/16/2021 |
6.0.24 | 22,277 | 11/12/2021 |
6.0.23 | 1,869,044 | 11/3/2021 |
6.0.22 | 2,403 | 11/2/2021 |
6.0.21 | 44,850 | 10/26/2021 |
6.0.20 | 4,322 | 10/24/2021 |
6.0.19 | 368,798 | 10/20/2021 |
6.0.18 | 710 | 10/20/2021 |
6.0.17 | 718 | 10/20/2021 |
6.0.16 | 736 | 10/20/2021 |
6.0.15 | 14,392 | 10/14/2021 |
6.0.14 | 20,744 | 10/14/2021 |
6.0.13 | 23,458 | 10/11/2021 |
6.0.12 | 1,559 | 10/11/2021 |
6.0.11 | 90,648 | 9/29/2021 |
6.0.10 | 2,911 | 9/29/2021 |
6.0.9 | 2,056 | 9/29/2021 |
6.0.8 | 45,736 | 9/25/2021 |
6.0.7 | 21,126 | 9/21/2021 |
6.0.6 | 8,127 | 9/17/2021 |
6.0.5 | 1,136 | 9/17/2021 |
6.0.4 | 855 | 9/17/2021 |
6.0.3 | 8,553 | 9/14/2021 |
6.0.2 | 850 | 9/14/2021 |
6.0.1 | 253,336 | 8/15/2021 |
5.0.20 | 1,492,078 | 8/10/2021 |
5.0.19 | 5,515 | 8/9/2021 |
5.0.18 | 842 | 8/9/2021 |
5.0.17 | 21,158 | 8/4/2021 |
5.0.16 | 876 | 8/4/2021 |
5.0.15 | 1,379,305 | 7/22/2021 |
5.0.13 | 220,260 | 6/27/2021 |
5.0.12 | 67,074 | 6/21/2021 |
5.0.11 | 11,728 | 6/14/2021 |
5.0.10 | 97,649 | 5/26/2021 |
5.0.9 | 5,397 | 5/24/2021 |
5.0.8 | 25,249 | 5/21/2021 |
5.0.7 | 894 | 5/21/2021 |
5.0.6 | 5,909 | 5/19/2021 |
5.0.5 | 55,292 | 5/14/2021 |
5.0.4 | 142,675 | 4/28/2021 |
5.0.3 | 10,949 | 4/24/2021 |
5.0.2 | 14,208 | 4/20/2021 |
5.0.1 | 81,030 | 4/9/2021 |
4.0.26 | 12,228,955 | 4/9/2021 |
4.0.25 | 5,587 | 4/8/2021 |
4.0.24 | 977 | 4/8/2021 |
4.0.23 | 41,190 | 4/5/2021 |
4.0.22 | 76,132 | 4/2/2021 |
4.0.21 | 143,371 | 3/24/2021 |
4.0.20 | 43,872 | 3/18/2021 |
4.0.19 | 6,871 | 3/12/2021 |
4.0.16 | 149,840 | 3/2/2021 |
4.0.15 | 6,773 | 2/27/2021 |
4.0.14 | 142,141 | 2/25/2021 |
4.0.13 | 10,491 | 2/19/2021 |
4.0.12 | 17,820 | 2/18/2021 |
4.0.11 | 20,271 | 2/17/2021 |
4.0.10 | 536,883 | 2/1/2021 |
4.0.9 | 29,548 | 1/28/2021 |
4.0.8 | 866 | 1/27/2021 |
4.0.7 | 1,375 | 1/27/2021 |
4.0.5 | 67,783 | 1/19/2021 |
4.0.4 | 202,884 | 1/8/2021 |
4.0.3 | 238,299 | 12/19/2020 |
4.0.2 | 3,501 | 12/17/2020 |
4.0.1 | 23,186 | 12/14/2020 |
3.0.16 | 489,530 | 11/25/2020 |
3.0.15 | 794 | 11/25/2020 |
3.0.14 | 64,166 | 11/23/2020 |
3.0.13 | 1,078 | 11/22/2020 |
3.0.12 | 3,710,983 | 11/19/2020 |
3.0.11 | 2,280 | 11/18/2020 |
3.0.8 | 8,892 | 11/13/2020 |
3.0.7 | 36,543 | 11/1/2020 |
3.0.6 | 862 | 11/1/2020 |
3.0.5 | 28,636 | 10/30/2020 |
3.0.4 | 7,289 | 10/28/2020 |
3.0.3 | 1,361 | 10/28/2020 |
3.0.2 | 1,497 | 10/27/2020 |
3.0.1 | 90,101 | 10/27/2020 |
2.0.34 | 52,567 | 10/23/2020 |
2.0.33 | 123,967 | 9/28/2020 |
2.0.32 | 2,356 | 9/25/2020 |
2.0.31 | 899 | 9/25/2020 |
2.0.30 | 46,625 | 9/19/2020 |
2.0.29 | 3,559,419 | 8/10/2020 |
2.0.28 | 12,144 | 8/8/2020 |
2.0.27 | 34,996 | 8/3/2020 |
2.0.26 | 428,525 | 6/28/2020 |
2.0.25 | 396,686 | 5/29/2020 |
2.0.22 | 23,780 | 5/18/2020 |
2.0.21 | 42,281 | 5/11/2020 |
2.0.20 | 776 | 5/11/2020 |
2.0.19 | 809 | 5/11/2020 |
2.0.18 | 14,048 | 5/4/2020 |
2.0.17 | 9,185 | 4/28/2020 |
2.0.16 | 180,393 | 4/23/2020 |
2.0.15 | 1,422 | 4/22/2020 |
2.0.14 | 836 | 4/22/2020 |
2.0.13 | 792 | 4/22/2020 |
2.0.12 | 932 | 4/22/2020 |
2.0.11 | 859 | 4/22/2020 |
2.0.10 | 2,389 | 4/20/2020 |
2.0.9 | 1,069 | 4/20/2020 |
2.0.8 | 837 | 4/20/2020 |
2.0.7 | 816 | 4/20/2020 |
2.0.6 | 12,769 | 4/17/2020 |
2.0.5 | 1,150 | 4/17/2020 |
2.0.3 | 2,785 | 4/16/2020 |
2.0.2 | 273,032 | 4/15/2020 |
2.0.1 | 552,914 | 4/11/2020 |
1.6.35 | 220,056 | 4/9/2020 |
1.6.34 | 806 | 4/9/2020 |
1.6.33 | 25,101 | 4/6/2020 |
1.6.32 | 932 | 4/6/2020 |
1.6.31 | 1,068 | 4/6/2020 |
1.6.30 | 26,887 | 4/3/2020 |
1.6.29 | 70,652 | 4/1/2020 |
1.6.28 | 8,327 | 3/25/2020 |
1.6.27 | 24,986 | 3/23/2020 |
1.6.25 | 852 | 3/23/2020 |
1.6.24 | 10,672 | 3/19/2020 |
1.6.23 | 116,268 | 3/17/2020 |
1.6.22 | 850 | 3/17/2020 |
1.6.21 | 6,497 | 3/14/2020 |
1.6.20 | 3,846 | 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,239 | 1/21/2020 |
1.6.11 | 54,260 | 1/10/2020 |
1.6.10 | 3,171,939 | 1/7/2020 |
1.6.9 | 1,048 | 1/6/2020 |
1.6.8 | 53,302 | 12/21/2019 |
1.6.7 | 2,350 | 12/20/2019 |
1.6.6 | 28,432 | 12/6/2019 |
1.6.5 | 63,855 | 11/22/2019 |
1.6.4 | 20,984 | 11/9/2019 |
1.6.3 | 555,409 | 10/22/2019 |
1.6.2 | 999 | 10/22/2019 |
1.6.1 | 70,016 | 10/2/2019 |
1.5.28 | 21,294 | 9/30/2019 |
1.5.27 | 916 | 9/30/2019 |
1.5.26 | 30,803 | 9/24/2019 |
1.5.25 | 279,414 | 7/25/2019 |
1.5.19 | 197,127 | 5/12/2019 |
1.5.18 | 61,599 | 4/1/2019 |
1.5.17 | 31,049 | 3/28/2019 |
1.5.16 | 4,775 | 3/26/2019 |
1.5.14 | 1,835 | 3/25/2019 |
1.5.13 | 1,924 | 3/24/2019 |
1.5.12 | 1,930 | 3/23/2019 |
1.5.11 | 1,593 | 3/23/2019 |
1.5.10 | 1,750 | 3/23/2019 |
1.5.9 | 1,820 | 3/22/2019 |
1.5.8 | 1,663 | 3/22/2019 |
1.5.7 | 1,693 | 3/22/2019 |
1.5.6 | 1,641 | 3/21/2019 |
1.5.5 | 2,831 | 3/20/2019 |
1.5.4 | 2,997 | 3/20/2019 |
1.5.3 | 1,479 | 3/20/2019 |
1.5.2 | 1,774 | 3/20/2019 |
1.5.1-g60ffd20a7c | 6,951 | 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,755 | 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,371 | 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,407 | 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,721 | 4/20/2018 |
0.6.0-beta | 5,281 | 3/22/2018 |
0.5.0-beta | 1,547 | 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,697 | 9/13/2017 |