Add the Serval API and controller for the non-cluster host gateway#5067
Draft
hjiawei wants to merge 1 commit into
Draft
Add the Serval API and controller for the non-cluster host gateway#5067hjiawei wants to merge 1 commit into
hjiawei wants to merge 1 commit into
Conversation
hjiawei
force-pushed
the
serval-non-cluster-host-gateway
branch
2 times, most recently
from
July 19, 2026 16:20
a5bfb21 to
e2c4293
Compare
The nonclusterhost controller renders the serval gateway when the NonClusterHost resource has spec.typhaEndpoint unset; when it is set, the legacy calico-typha-noncluster-host deployment renders as before. There is no Serval CR, CRD, or controller — NonClusterHost is the sole resource for the feature. Both modes share one host identity (the tigera-noncluster-host ServiceAccount) and one Typha server keypair (typha-certs-noncluster-host, reused by serval's in-process Typha), so switching modes adds no identity or secret and BYO typha certs keep working. A single HostEndpoint-count autoscaler (extracted into a shared typhaautoscaler package) scales both the serval and calico-typha-noncluster-host deployments to the same replica count; only one exists at a time. The fluent-bit log-ingestion input and CSR signing are gated on NonClusterHost presence. Also syncs the felixconfigurations CRDs from calico master. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
hjiawei
force-pushed
the
serval-non-cluster-host-gateway
branch
from
July 22, 2026 22:30
e2c4293 to
6c9665d
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
New feature. Adds the
ServalAPI (operator.tigera.io/v1) and controller. Serval is a layer-7 gateway that becomes the single entrypoint for non-cluster hosts: one HTTPS endpoint serving the impersonating kube-apiserver proxy, the log ingestion routes, and a WebSocket tunnel that carries the felix-typha sync connection. It supersedes the deprecatedNonClusterHostresource;NonClusterHostkeeps working unchanged as a legacy mode until a later removal release.The controller renders the gateway Deployment (combined calico image,
controlPlaneReplicaswith pod anti-affinity,enableServiceLinks: false), a ClusterIP Service, an operator-issued TLS keypair including the external endpoint SAN, RBAC (impersonation, TokenReview/SubjectAccessReview create,geton serviceaccounts for the Tigera-JWT authenticator), and allow-tigera network policies. The fluent-bit input policy admits serval as a source, and the host ClusterRole gains read onservals.Testing: render unit tests, plus end-to-end validation of the rendered object shapes on a kubeadm Enterprise cluster with a Rocky 9 non-cluster host (felix in sync through the tunnel, apiserver proxy serving the cert-init and token-minting flows, logs flowing to linseed).
Companion PR (calico-private): https://github.com/tigera/calico-private/pull/12765
Design: tigera/designs
2026/serval-non-cluster-host-gatewayRelease Note
🤖 Generated with Claude Code