Skip to content

.NET Standard 2.1 library that provides abstractions and default implementations to manage Istio thanks to an IKubernetes client

License

Notifications You must be signed in to change notification settings

neuroglia-io/Istio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Neuroglia Istio

.NET Standard 2.1 library that provides abstractions and default implementations to manage Istio thanks to an IKubernetes client

WORK IN PROGRESS

Usage

Nuget Package

  dotnet add package Neuroglia.Istio

Sample Code

Create a new Virtual Service

    V1ObjectMeta metadata = new V1ObjectMeta(name: "test-vs");
    VirtualServiceSpec spec = new VirtualServiceSpec()
    {
        Hosts = new List<string>() { "test" },
        Http = new List<HttpRoute>() 
        { 
            new HttpRoute()
            {
                Headers = new Headers()
                {
                    Request = new HeadersOperations()
                    {
                        Add = new Dictionary<string, string>()
                        {
                            { "x-custom-header", "Added by test-vs" }
                        }
                    }
                },
                Route = new List<HttpRouteDestination>()
                {
                    new HttpRouteDestination()
                    {
                        Destination = new Destination("test")
                        {
                            Port = new PortSelector(80)
                        }
                    }
                }
            } 
        }
    };
    VirtualService virtualService = new VirtualService(metadata, spec);
    await this.KubernetesClient.CreateNamespacedCustomObjectAsync(virtualService, broker.Namespace());

Contributing

Please see CONTRIBUTING.md for instructions on how to contribute.

About

.NET Standard 2.1 library that provides abstractions and default implementations to manage Istio thanks to an IKubernetes client

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages