Orleans.Clustering.Kubernetes
1.1.1
See the version list below for details.
dotnet add package Orleans.Clustering.Kubernetes --version 1.1.1
NuGet\Install-Package Orleans.Clustering.Kubernetes -Version 1.1.1
<PackageReference Include="Orleans.Clustering.Kubernetes" Version="1.1.1" />
paket add Orleans.Clustering.Kubernetes --version 1.1.1
#r "nuget: Orleans.Clustering.Kubernetes, 1.1.1"
// Install Orleans.Clustering.Kubernetes as a Cake Addin #addin nuget:?package=Orleans.Clustering.Kubernetes&version=1.1.1 // Install Orleans.Clustering.Kubernetes as a Cake Tool #tool nuget:?package=Orleans.Clustering.Kubernetes&version=1.1.1
Configuration
A functional Kubernetes cluster is required for this provider to work. If you don't have one yet, there are multiple (and mostly complicated) ways to deploy Kubernetes for production use and it is out of scope of this provider as there are many articles around the web on how to do it. However, if you are playing with Docker and Kubernetes for the first time or you want to build a development box, Scott Hanselman has a nice article showing how to easily setup Docker for Windows with Kubernetes on your machine. Although it show Windows 10, it can be easily adopted to Mac OSX as well.
Silo
Tell Orleans runtime that we are going to use Kubernetes as our Cluster Membership Provider:
var silo = new SiloHostBuilder()
...
.UseKubeMembership(opt =>
{
opt.CanCreateResources = true;
})
...
.Build();
The CanCreateResources
will tell the provider to try create the CRDs at the startup time. In case it is set to false, you need to apply both .yaml
files from the package before start the silo. It must be done once per Kubernetes cluster.
Client
Now that our silo is up and running, the Orleans client needs to connect to the Kubernetes to look for Orleans Gateways.
var client = new ClientBuilder()
...
.UseKubeGatewayListProvider()
...
.Build();
Both gateway list and the membership provider has other options that allow you to specify credentials and the API endpoint for your Kubernetes API server. The default will use everything discovered from the data injecte from Kubernetes runtime into the pod
.
Great! Now enjoy your Orleans application running within a Kubernetes cluster without need an external membership provider!
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 | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. 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 | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 2.2.0)
- Microsoft.Orleans.Core (>= 2.3.0)
- Microsoft.Orleans.OrleansRuntime (>= 2.3.0)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on Orleans.Clustering.Kubernetes:
Package | Downloads |
---|---|
Orleans.Contrib.UniversalSilo
This library provides primitives to set up a configurable, application-agnostic Orleans silo and clients. Use it with the Orleans.Contrib.UniversalSilo.Templates to get started with Orleans. |
|
iotsecurityinfra
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
8.2.0 | 1,806 | 10/17/2024 |
8.0.2 | 10,911 | 8/9/2024 |
8.0.1 | 85,767 | 12/13/2023 |
8.0.0 | 2,050 | 12/12/2023 |
7.1.1 | 146,323 | 3/2/2023 |
7.1.0 | 2,096 | 2/17/2023 |
7.0.0 | 2,719 | 1/19/2023 |
2.1.0 | 383,338 | 12/12/2021 |
2.0.0 | 220,720 | 6/11/2020 |
1.2.2 | 41,072 | 3/22/2020 |
1.2.1 | 28,501 | 2/9/2020 |
1.2.0 | 2,116 | 1/25/2020 |
1.1.1 | 72,117 | 7/9/2019 |
1.1.0 | 8,719 | 3/21/2019 |
1.0.20 | 19,637 | 10/23/2018 |
1.0.19 | 11,373 | 7/10/2018 |
1.0.18 | 4,618 | 3/28/2018 |
1.0.0-rc2-15 | 1,004 | 3/13/2018 |
1.0.0-rc1-13 | 908 | 3/6/2018 |
1.0.0-rc1-11 | 837 | 2/27/2018 |
1.0.0-preview-7 | 1,019 | 2/9/2018 |
1.0.0-preview-5 | 888 | 2/9/2018 |