On Kubernetes the control plane watches the API server and derives most of the mesh from what is
already there. A Pod becomes a Dataplane and a Service becomes a MeshService. Ports and
protocols come from the Service definition. The injector adds the sidecar, wires transparent
proxying, and hands the proxy a token.
On Universal there is no API server to watch, so you have to declare those inputs.
|
Concern
|
On Kubernetes
|
On Universal
|
|
Registering a proxy
|
The injector adds the sidecar to a Pod and the control plane creates the Dataplane.
|
You run kuma-dp and supply the Dataplane resource, either applied ahead of time or passed inline with --dataplane-file.
|
|
Which ports a workload exposes
|
Read from the Service and the Pod’s container ports.
|
You declare networking.inbound[] with a port, and a servicePort and serviceAddress where they differ.
|
|
The protocol of a port
|
Derived from the Service port’s appProtocol.
|
You set networking.inbound[].protocol. If unset, it defaults to TCP and the port silently loses every L7 policy.
|
|
Which destinations a proxy can reach
|
The control plane generates outbounds.
|
You declare networking.outbound[] with a backendRef, or, with transparent proxying, list destinations in networking.transparentProxying.reachableBackends. With neither, the proxy reaches nothing unless the control plane sets KUMA_DEFAULTS_RESTRICT_OUTBOUND=false.
|
|
Labels that policies select on
|
Taken from Pod labels.
|
You set them under the Dataplane’s top-level labels.
|
The MeshService for a workload
|
Generated from each Service, and read-only.
|
Generated by the control plane from the kuma.io/workload label. For more information, see Control plane automation.
|
|
Proxy authentication
|
The proxy uses its Pod’s ServiceAccount token.
|
You issue a dataplane token and pass it with --dataplane-token-file. Once a MeshIdentity issues workload-based identities, the token must be bound to the proxy’s kuma.io/workload value (--workload).
|
|
Transparent proxying
|
The injector configures it.
|
You install the iptables rules with kumactl install transparent-proxy (as root), then run kuma-dp as the user the rules exclude, with --transparent-proxy.
|
|
Readiness
|
Taken from the Pod’s readiness probe.
|
You configure a service probe, or report health from outside.
|
|
Workload identity
|
SPIFFE path defaults to /ns/{namespace}/sa/{service-account}.
|
SPIFFE path defaults to /workload/{workload}, which comes from the kuma.io/workload label.
|