KubernetesClient 0.8.0-beta
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
<PackageReference Include="KubernetesClient" Version="0.8.0-beta" />
paket add KubernetesClient --version 0.8.0-beta
#r "nuget: KubernetesClient, 0.8.0-beta"
// 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
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 (68)
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 |
|
Orleans.Clustering.Kubernetes
Microsoft Orleans clustering provider backed by Kubernetes |
|
Elvia.Configuration
Library for handling configuration from secret storage. |
GitHub repositories (28)
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 |
---|---|---|
13.0.37 | 19,758 | 4/25/2024 |
13.0.26 | 128,373 | 3/9/2024 |
13.0.11 | 232,402 | 1/30/2024 |
13.0.1 | 121,592 | 1/9/2024 |
12.1.1 | 1,316,893 | 9/26/2023 |
12.0.16 | 312,276 | 8/31/2023 |
11.0.44 | 1,437,182 | 7/19/2023 |
11.0.36 | 166,299 | 6/30/2023 |
11.0.21 | 237,564 | 5/19/2023 |
11.0.9 | 135,707 | 5/1/2023 |
10.1.19 | 281,158 | 4/4/2023 |
10.1.4 | 244,044 | 3/5/2023 |
10.0.31 | 382,354 | 2/12/2023 |
10.0.27 | 63,609 | 2/2/2023 |
10.0.16 | 3,307,248 | 1/6/2023 |
10.0.1 | 109,270 | 12/16/2022 |
9.1.3 | 292,771 | 12/6/2022 |
9.0.38 | 393,131 | 10/24/2022 |
9.0.37 | 8,349 | 10/21/2022 |
9.0.28 | 203,794 | 9/27/2022 |
9.0.25 | 7,136 | 9/21/2022 |
8.0.68 | 536,445 | 8/22/2022 |
8.0.12 | 554,340 | 6/29/2022 |
8.0.8 | 159,139 | 6/3/2022 |
8.0.6 | 25,734 | 5/24/2022 |
8.0.4 | 199,231 | 5/12/2022 |
7.2.19 | 1,698,152 | 4/22/2022 |
7.2.15 | 153,591 | 4/19/2022 |
7.2.10 | 251,201 | 4/5/2022 |
7.2.8 | 847 | 4/4/2022 |
7.2.7 | 848 | 4/4/2022 |
7.1.9 | 83,795 | 3/23/2022 |
7.1.3-g341580fb9b | 47,675 | 2/26/2022 |
7.0.15 | 230,076 | 2/23/2022 |
7.0.14 | 15,121 | 2/20/2022 |
7.0.13 | 54,260 | 2/17/2022 |
7.0.12 | 8,372 | 2/15/2022 |
7.0.11 | 33,790 | 2/8/2022 |
7.0.10 | 12,646 | 2/1/2022 |
7.0.9 | 3,790 | 1/31/2022 |
7.0.8 | 225,198 | 1/26/2022 |
7.0.7 | 129,000 | 1/24/2022 |
7.0.6 | 1,338 | 1/23/2022 |
7.0.5 | 432,716 | 1/11/2022 |
7.0.4 | 119,237 | 12/23/2021 |
7.0.3 | 7,565 | 12/19/2021 |
7.0.2 | 585 | 12/19/2021 |
7.0.1 | 62,369 | 12/13/2021 |
6.0.26 | 450,018 | 12/3/2021 |
6.0.25 | 116,932 | 11/16/2021 |
6.0.24 | 21,166 | 11/12/2021 |
6.0.23 | 1,756,112 | 11/3/2021 |
6.0.22 | 2,299 | 11/2/2021 |
6.0.21 | 43,202 | 10/26/2021 |
6.0.20 | 3,976 | 10/24/2021 |
6.0.19 | 330,025 | 10/20/2021 |
6.0.18 | 638 | 10/20/2021 |
6.0.17 | 650 | 10/20/2021 |
6.0.16 | 668 | 10/20/2021 |
6.0.15 | 14,058 | 10/14/2021 |
6.0.14 | 17,817 | 10/14/2021 |
6.0.13 | 22,672 | 10/11/2021 |
6.0.12 | 1,480 | 10/11/2021 |
6.0.11 | 77,560 | 9/29/2021 |
6.0.10 | 2,140 | 9/29/2021 |
6.0.9 | 1,943 | 9/29/2021 |
6.0.8 | 42,123 | 9/25/2021 |
6.0.7 | 21,009 | 9/21/2021 |
6.0.6 | 7,763 | 9/17/2021 |
6.0.5 | 1,034 | 9/17/2021 |
6.0.4 | 779 | 9/17/2021 |
6.0.3 | 7,612 | 9/14/2021 |
6.0.2 | 772 | 9/14/2021 |
6.0.1 | 239,904 | 8/15/2021 |
5.0.20 | 1,231,771 | 8/10/2021 |
5.0.19 | 5,234 | 8/9/2021 |
5.0.18 | 772 | 8/9/2021 |
5.0.17 | 20,884 | 8/4/2021 |
5.0.16 | 790 | 8/4/2021 |
5.0.15 | 1,297,689 | 7/22/2021 |
5.0.13 | 197,398 | 6/27/2021 |
5.0.12 | 66,833 | 6/21/2021 |
5.0.11 | 11,360 | 6/14/2021 |
5.0.10 | 94,365 | 5/26/2021 |
5.0.9 | 5,303 | 5/24/2021 |
5.0.8 | 24,451 | 5/21/2021 |
5.0.7 | 829 | 5/21/2021 |
5.0.6 | 5,823 | 5/19/2021 |
5.0.5 | 53,616 | 5/14/2021 |
5.0.4 | 135,570 | 4/28/2021 |
5.0.3 | 10,788 | 4/24/2021 |
5.0.2 | 13,330 | 4/20/2021 |
5.0.1 | 75,692 | 4/9/2021 |
4.0.26 | 10,350,836 | 4/9/2021 |
4.0.25 | 5,445 | 4/8/2021 |
4.0.24 | 894 | 4/8/2021 |
4.0.23 | 40,841 | 4/5/2021 |
4.0.22 | 75,643 | 4/2/2021 |
4.0.21 | 134,801 | 3/24/2021 |
4.0.20 | 43,722 | 3/18/2021 |
4.0.19 | 6,637 | 3/12/2021 |
4.0.16 | 138,711 | 3/2/2021 |
4.0.15 | 6,632 | 2/27/2021 |
4.0.14 | 108,279 | 2/25/2021 |
4.0.13 | 10,377 | 2/19/2021 |
4.0.12 | 17,747 | 2/18/2021 |
4.0.11 | 20,192 | 2/17/2021 |
4.0.10 | 522,324 | 2/1/2021 |
4.0.9 | 29,321 | 1/28/2021 |
4.0.8 | 763 | 1/27/2021 |
4.0.7 | 1,304 | 1/27/2021 |
4.0.5 | 66,540 | 1/19/2021 |
4.0.4 | 201,702 | 1/8/2021 |
4.0.3 | 224,373 | 12/19/2020 |
4.0.2 | 3,439 | 12/17/2020 |
4.0.1 | 23,051 | 12/14/2020 |
3.0.16 | 421,810 | 11/25/2020 |
3.0.15 | 733 | 11/25/2020 |
3.0.14 | 63,943 | 11/23/2020 |
3.0.13 | 1,019 | 11/22/2020 |
3.0.12 | 3,521,228 | 11/19/2020 |
3.0.11 | 2,218 | 11/18/2020 |
3.0.8 | 8,670 | 11/13/2020 |
3.0.7 | 36,072 | 11/1/2020 |
3.0.6 | 799 | 11/1/2020 |
3.0.5 | 27,660 | 10/30/2020 |
3.0.4 | 7,097 | 10/28/2020 |
3.0.3 | 1,305 | 10/28/2020 |
3.0.2 | 1,425 | 10/27/2020 |
3.0.1 | 89,907 | 10/27/2020 |
2.0.34 | 50,868 | 10/23/2020 |
2.0.33 | 122,239 | 9/28/2020 |
2.0.32 | 2,041 | 9/25/2020 |
2.0.31 | 839 | 9/25/2020 |
2.0.30 | 42,953 | 9/19/2020 |
2.0.29 | 3,392,486 | 8/10/2020 |
2.0.28 | 12,083 | 8/8/2020 |
2.0.27 | 34,533 | 8/3/2020 |
2.0.26 | 421,093 | 6/28/2020 |
2.0.25 | 387,655 | 5/29/2020 |
2.0.22 | 23,694 | 5/18/2020 |
2.0.21 | 40,819 | 5/11/2020 |
2.0.20 | 713 | 5/11/2020 |
2.0.19 | 749 | 5/11/2020 |
2.0.18 | 13,799 | 5/4/2020 |
2.0.17 | 9,109 | 4/28/2020 |
2.0.16 | 133,436 | 4/23/2020 |
2.0.15 | 1,366 | 4/22/2020 |
2.0.14 | 777 | 4/22/2020 |
2.0.13 | 733 | 4/22/2020 |
2.0.12 | 867 | 4/22/2020 |
2.0.11 | 780 | 4/22/2020 |
2.0.10 | 2,286 | 4/20/2020 |
2.0.9 | 955 | 4/20/2020 |
2.0.8 | 769 | 4/20/2020 |
2.0.7 | 760 | 4/20/2020 |
2.0.6 | 12,623 | 4/17/2020 |
2.0.5 | 1,089 | 4/17/2020 |
2.0.3 | 2,550 | 4/16/2020 |
2.0.2 | 272,870 | 4/15/2020 |
2.0.1 | 482,159 | 4/11/2020 |
1.6.35 | 217,674 | 4/9/2020 |
1.6.34 | 745 | 4/9/2020 |
1.6.33 | 24,969 | 4/6/2020 |
1.6.32 | 876 | 4/6/2020 |
1.6.31 | 1,009 | 4/6/2020 |
1.6.30 | 25,996 | 4/3/2020 |
1.6.29 | 68,213 | 4/1/2020 |
1.6.28 | 8,259 | 3/25/2020 |
1.6.27 | 24,722 | 3/23/2020 |
1.6.25 | 791 | 3/23/2020 |
1.6.24 | 10,618 | 3/19/2020 |
1.6.23 | 116,209 | 3/17/2020 |
1.6.22 | 789 | 3/17/2020 |
1.6.21 | 6,370 | 3/14/2020 |
1.6.20 | 3,761 | 3/11/2020 |
1.6.20-gc8de0ca263 | 487 | 3/10/2020 |
1.6.19-g7749ae07c8 | 505 | 3/10/2020 |
1.6.18-g0468a66de4 | 1,189 | 3/9/2020 |
1.6.17-g435ab5cd15 | 874 | 3/9/2020 |
1.6.16-gb07e78afa4 | 554 | 3/5/2020 |
1.6.15-ge11cc58e56 | 27,666 | 2/14/2020 |
1.6.14-gba9755b626 | 588 | 2/9/2020 |
1.6.13-gfa515869e2 | 671 | 1/23/2020 |
1.6.12 | 95,646 | 1/21/2020 |
1.6.11 | 54,179 | 1/10/2020 |
1.6.10 | 2,983,698 | 1/7/2020 |
1.6.9 | 987 | 1/6/2020 |
1.6.8 | 52,495 | 12/21/2019 |
1.6.7 | 2,293 | 12/20/2019 |
1.6.6 | 28,155 | 12/6/2019 |
1.6.5 | 61,945 | 11/22/2019 |
1.6.4 | 20,595 | 11/9/2019 |
1.6.3 | 552,995 | 10/22/2019 |
1.6.2 | 938 | 10/22/2019 |
1.6.1 | 67,768 | 10/2/2019 |
1.5.28 | 21,052 | 9/30/2019 |
1.5.27 | 858 | 9/30/2019 |
1.5.26 | 29,970 | 9/24/2019 |
1.5.25 | 276,892 | 7/25/2019 |
1.5.19 | 195,236 | 5/12/2019 |
1.5.18 | 58,308 | 4/1/2019 |
1.5.17 | 30,969 | 3/28/2019 |
1.5.16 | 4,713 | 3/26/2019 |
1.5.14 | 1,768 | 3/25/2019 |
1.5.13 | 1,865 | 3/24/2019 |
1.5.12 | 1,865 | 3/23/2019 |
1.5.11 | 1,532 | 3/23/2019 |
1.5.10 | 1,677 | 3/23/2019 |
1.5.9 | 1,762 | 3/22/2019 |
1.5.8 | 1,606 | 3/22/2019 |
1.5.7 | 1,628 | 3/22/2019 |
1.5.6 | 1,580 | 3/21/2019 |
1.5.5 | 2,762 | 3/20/2019 |
1.5.4 | 2,936 | 3/20/2019 |
1.5.3 | 1,413 | 3/20/2019 |
1.5.2 | 1,709 | 3/20/2019 |
1.5.1-g60ffd20a7c | 6,807 | 3/12/2019 |
1.4.14-g5422eb0bcc | 1,526 | 2/27/2019 |
1.4.13-g948d78c1bd | 1,098 | 2/27/2019 |
1.4.12-ge95e01c6e9 | 2,893 | 2/19/2019 |
1.4.11-g406df57f9d | 1,148 | 2/15/2019 |
1.4.9-g9f1669b0cb | 1,780 | 2/12/2019 |
1.4.8-g9bbe42201f | 1,236 | 2/7/2019 |
1.4.7-g4d193e4c1c | 1,185 | 2/6/2019 |
1.4.5-g588807fb44 | 1,248 | 1/29/2019 |
1.4.4-g972699bc71 | 1,865 | 1/24/2019 |
1.4.3-g29b066286f | 1,127 | 1/24/2019 |
1.4.2-g05273b7db7 | 58,402 | 12/24/2018 |
1.4.1-g7e907d7c6f | 1,067 | 3/12/2019 |
1.4.1-g1600e44b00 | 1,208 | 12/12/2018 |
1.3.9-gb7f79c924f | 1,278 | 12/12/2018 |
1.3.8-g6bc54a68c4 | 1,175 | 12/11/2018 |
1.3.7-g7c9cc88d38 | 9,003 | 10/27/2018 |
1.3.6-g355d4a3927 | 1,230 | 10/27/2018 |
1.3.5-g0b1669d5a5 | 1,208 | 10/27/2018 |
1.3.4-gaa1c880301 | 1,245 | 10/27/2018 |
1.3.3-g25523d1985 | 1,289 | 10/26/2018 |
1.3.2-g99dc2f7aaf | 1,274 | 10/26/2018 |
1.3.1-gdf3381607a | 2,275 | 10/3/2018 |
1.2.8-g9372e3291f | 1,754 | 9/27/2018 |
1.2.7-g09a8c8773a | 2,524 | 9/13/2018 |
1.2.6-g3cee7fbd93 | 1,428 | 9/10/2018 |
1.2.5-g397a582ff0 | 1,351 | 8/19/2018 |
1.2.4-g722d4e09d3 | 1,412 | 8/7/2018 |
1.2.3-g3551f03258 | 13,019 | 7/19/2018 |
1.2.2-gac99f43c84 | 2,058 | 7/17/2018 |
1.2.1-gaec5c99162 | 1,444 | 7/14/2018 |
1.2.0 | 249,379 | 7/14/2018 |
1.1.14-gdae6d62cba | 1,452 | 7/9/2018 |
1.1.13-g8c3152af97 | 1,478 | 7/9/2018 |
1.1.12-gd01446718d | 1,454 | 7/9/2018 |
1.1.11-g3f69820739 | 3,075 | 7/2/2018 |
1.1.10-gbb11e5f5ce | 1,343 | 7/2/2018 |
1.1.0-gf488d54ce7 | 1,533 | 6/11/2018 |
1.1.0-gc1543b527e | 1,446 | 6/25/2018 |
1.1.0-gbc1cb6205c | 1,426 | 6/27/2018 |
1.1.0-ga358cb9afd | 1,433 | 6/7/2018 |
1.1.0-g7723604b7e | 1,469 | 6/25/2018 |
1.1.0-g6eb5555145 | 1,430 | 6/13/2018 |
1.1.0-g6e0aec994e | 1,514 | 6/2/2018 |
1.1.0-g49bb82b15d | 1,340 | 7/2/2018 |
1.0.0 | 20,628 | 5/26/2018 |
1.0.0-ge6c1177471 | 1,331 | 5/26/2018 |
1.0.0-g9253eeb2eb | 1,496 | 5/30/2018 |
1.0.0-g86abfc1b7c | 1,423 | 6/1/2018 |
0.8.0-beta-g307c77bf04 | 1,467 | 5/23/2018 |
0.8.0-beta | 1,378 | 5/21/2018 |
0.7.0-beta-g6728505e34 | 1,376 | 5/23/2018 |
0.7.0-beta | 4,585 | 4/20/2018 |
0.6.0-beta | 5,213 | 3/22/2018 |
0.5.0-beta | 1,489 | 3/18/2018 |
0.4.0-beta | 7,494 | 2/2/2018 |
0.3.0-beta | 2,649 | 11/21/2017 |
0.2.0-beta | 1,559 | 10/21/2017 |
0.1.0-beta | 1,617 | 9/13/2017 |