Kubernetes operator for YANET2 workloads: component palettes, named strategic-merge patches, box-type presets, multi-node installations and per-NUMA controlplanes.
Operator and chart 4.0.0 use one API, yanet.yanet-platform.io/v1alpha1,
with Yanet and YanetConfig resources. Managed gateways use persistent file
policy and upstream reload. See the breaking release notes
before replacing an existing managed installation.
- Per-node Deployments selected through
nodeSelector. - Shared box-type Services with node-local traffic policy.
- Explicit NUMA fan-out and per-installation NUMA exclusions.
- Declarative native sidecars and standalone multi-container operators.
- Typed Multus attachments with matching device resource requests/limits.
- Admission validation, drift reporting, conditions, events and Prometheus metrics.
- Ownership-aware cleanup and guarded role/network transitions.
- Opt-in cert-manager issuance with role-scoped persistent credential delivery; see managed certificates for prerequisites and limits. Replacing an existing managed installation requires stopping its workloads, retiring its offline startup definitions and creating a clean installation.
Requires Kubernetes 1.33+ for named Service target ports on native sidecars. After release publication, install into a cluster with the new CRDs:
helm install yanet-operator \
oci://ghcr.io/yanet-platform/charts/yanet-operator \
--version 4.0.0 \
--namespace yanet-system \
--create-namespaceFor an existing managed installation, follow the clean replacement instructions
before updating Helm values or the operator image. Set image.repository to the
published GHCR repository or a verified site mirror accessible to the cluster.
Use --set metrics.serviceMonitor.enabled=false without Prometheus Operator.
Set the Grafana dashboard namespace or disable it with
--set grafana.dashboards.enabled=false when no Grafana sidecar consumes it.
The chart README describes all values.
Helm does not upgrade/delete CRDs in crds/; an existing incompatible installation
requires the coordinated replacement procedure.
| Kind | Resource | Scope |
|---|---|---|
YanetConfig |
yanetconfigs.yanet.yanet-platform.io |
Cluster; singleton config |
Yanet |
yanets.yanet.yanet-platform.io |
Namespaced |
YanetConfig.spec contains three layers:
components: available controlplane/dataplane/birdAdapter, ordered dataplanesidecars[]and standaloneoperators[].containers[].patches: named strategic-merge Deployment fragments.boxTypes: named presets selecting components and their ordered patches.
An installation selects a box type and nodes, with narrow image, enablement, NUMA and hugepage/network overrides. General resources, annotations and extra mounts belong in the palette's patches.
apiVersion: yanet.yanet-platform.io/v1alpha1
kind: YanetConfig
metadata:
name: config
spec:
components:
controlplane:
image: {name: controlplane, tag: example}
numa: 2
config:
hostPath: /etc/yanet2
args: [-c, "/etc/yanet2/controlplane.d/numa{numa}.yaml"]
dataplane:
image: {name: dataplane, tag: example}
config:
hostPath: /etc/yanet2
args: [/etc/yanet2/dataplane.yaml]
boxTypes:
- name: release
components:
controlplane: {}
dataplane: {}This illustrates the schema, not a hardware-qualified configuration. Use the
full example for sidecars,
resource/mount patches and typed networks. Replace example images with compatible
releases and prepare host configuration before enabling workloads.
Helm can manage this singleton through yanetconfig.spec; it is omitted by default.
apiVersion: yanet.yanet-platform.io/v1alpha1
kind: Yanet
metadata:
name: worker-1
namespace: yanet
spec:
boxType: release
nodeSelector:
kubernetes.io/hostname: worker-1
autoSync: trueboxType is immutable. autoSync defaults to false (report-only).
enabled: false with autoSync: true scales Deployments to zero; stop: true on
the palette freezes reconciliation, including finalizer cleanup, without draining Pods.
Each node has one installation owner; an existing workload owner takes precedence
over a new overlapping selector.
Node names must fit Kubernetes label values (at most 63 characters), since workload
labels contain the node name. The scheduler pin uses required affinity on
metadata.name, independently of the hostname label. Unsupported names
fail resource preflight before workloads or certificates are written.
All runtime Pods use private networking; hostNetwork: true and nonzero
hostPort are rejected after patches. Sidecar index i reserves ports
8080+2*i / 8081+2*i before selection/enablement. Standalone Pods use 8080/8081.
Shared Services yanet-<boxType>-<role>[-numa<N>] expose 8080/8081 with
internalTrafficPolicy: Local; they remain present for disabled roles.
Managed HostPath config receives runtime bind/advertise and indexed gateway endpoint
environment after patches. Inline ConfigMap data stays opaque and receives no
automatic environment. Optional config.mountPath selects the container directory
(default /etc/yanet2); inline data is mounted as <mountPath>/config.
Only {numa} in controlplane arguments is substituted; all other arguments are literal.
Configure gateway listeners explicitly for every active node and NUMA instance, including the Service's transport and reachable bind address.
Controlplane configs use the native gateway.server.grpc section. Without a managed
controlplane server certificate profile, configure either grpc.endpoint or
grpc.tls.endpoint on [::]:8080 in the host file or explicit palette environment.
The operator preserves that transport choice and does not infer plaintext from
the absence of managed certificates. Configure the HTTP bind in the file on
[::]:8081; the corresponding environment variable is ambiguous with the
deprecated HTTP key and is not injected.
Gateway endpoints use standard xcfg.WithEnv() variables
YANET_GATEWAYS_<index>_ENDPOINT. Host configs already define the correct active
gateways in ascending physical NUMA order; indices are list positions, not NUMA IDs.
Names, TLS and list membership stay in the config. No runtime-specific gateway
selection parser is required. See the environment contract.
For managed certificates, render native TLS/authentication fields in the host configuration generator and align their paths with the role mounts. See the native application configuration contract.
Typed components.dataplane.networks couples existing NADs to device resources.
An installation list replaces the palette, [] clears it, and omission/null
inherits. The operator does not provision NICs or NADs. See the
network configuration.
Runtime probe readiness and full packet forwarding require target-cluster qualification. Pod Ready and operator conditions alone do not establish them.
Use Make + Docker as required by AGENTS.md:
make generate manifests helm-crds
make fmt
make test-docker
make test-docker-race
make lint vet
make helm-lint
make docker-build- Architecture and YANET2 runtime topology
- Testing
- Admission webhooks
- Prometheus metrics
- Release process
- Contributing
Copyright 2023-2026 YANDEX LLC. Licensed under the Apache License 2.0.