Table of Contents

Class HealthPort

Namespace
Virtufin.Api.HealthChecks
Assembly
Virtufin.Api.dll

The api's HTTP/1.1 port serves only the health checks (kubelet probes, deploy-local's startup wait). Every API surface — gRPC and gRPC-Web — is on the gRPC port. Services are mapped once for the whole app, so without this gate gRPC-Web would also answer on the HTTP port.

public static class HealthPort
Inheritance
HealthPort
Inherited Members

Fields

LivenessAliasPath

Liveness under its Kubernetes-style name.

public const string LivenessAliasPath = "/healthz"

Field Value

string

LivenessPath

Liveness: the process answers.

public const string LivenessPath = "/health"

Field Value

string

Paths

Every path the HTTP port answers.

public static readonly IReadOnlyList<string> Paths

Field Value

IReadOnlyList<string>

ReadinessPath

Readiness: the checks tagged ready pass.

public const string ReadinessPath = "/ready"

Field Value

string

Methods

UseHealthPortOnly(IApplicationBuilder, int)

Answer 404 for every request that arrives on healthPort and is not one of Paths. Keyed on the connection's local port, not the Host header: behind Traefik the Host is the public name. Add it before gRPC-Web and routing.

public static IApplicationBuilder UseHealthPortOnly(this IApplicationBuilder app, int healthPort)

Parameters

app IApplicationBuilder
healthPort int

Returns

IApplicationBuilder