| Field | Type | Description | Value(s) |
|---|---|---|---|
port | int | KubePrism port. The load balancer will be started on 127.0.0.1:<port> and it willautomatically include a controlplane endpoint and direct addresses of all controlplane nodes in the cluster. The KubePrism will pick up the route(s) with the lowest RTT to the controlplane nodes, excluding the unavailable ones, and will automatically update the route list when the controlplane nodes change. | |
tlsServerName | string | Override the TLS server name (SNI) used by the kubelet when connecting to the KubePrism endpoint. KubePrism still listens on 127.0.0.1:<port> and the kubelet still dialsthat address, but the generated kubelet kubeconfig will carry clusters[0].cluster.tls-server-name set to this value, so the kubeletuses it for SNI and certificate hostname verification. This is useful when KubePrism’s upstream apiserver is reached through an SNI-routing L4 proxy (for example nginx-ingress in ssl-passthrough mode in front of a Kamaji-hosted apiserver), where SNI=127.0.0.1 doesn’t match any route and the proxy serves a fallback certificate. When empty (default), no tls-server-name is set and behavior is unchanged. | |
readinessCheck | bool | Use the Kubernetes API server readiness endpoint (/readyz) to check the health of the upstreams.When enabled, KubePrism establishes a TLS connection to each upstream, verifies the API server certificate against the Kubernetes CA (using tlsServerName if set), and considers the upstreamhealthy only if the API server reports itself ready. This allows KubePrism to stop routing new connections to an API server which still accepts TCP connections, but can’t serve requests (e.g. it lost connection to etcd, or it is shutting down). The readiness check requires unauthenticated access to the /readyz endpoint of the API server(see KubeAuthenticationConfig), which is the default since Talos 1.14.When disabled (default), the upstream health check is a TCP connection attempt. Machine configuration generated for Talos 1.15+ enables the readiness check. |
Kubernetes
KubePrismConfig
KubePrismConfig configures node-local Kubernetes API load balancer.