Getting Started
Installation
dotnet add package Neon.Operator --prerelease
How to use
Program.cs
public static partial class Program
{
public static async Task Main(string[] args)
{
var operator = KubernetesOperatorHost
.CreateDefaultBuilder(args)
.ConfigureNeonKube() // for operators running in NeonKUBE clusters.
.UseStartup<Startup>()
.Build();
await operator.RunAsync();
}
}
Startup.cs
public void ConfigureServices(IServiceCollection services)
{
services.AddKubernetesOperator();
}
public void Configure(IApplicationBuilder app)
{
app.UseKubernetesOperator();
}
By default, all Controllers, Finalizers and Webhooks in your assembly will be added to the operator.