Update Sidecar Injector and Pod Reconciler to support new transparent proxy config flow #13341
Labels
kind/improvement
Improvement on an existing feature
triage/accepted
The issue was reviewed and is complete enough to start working on it
Milestone
Description
Summary
Update the Sidecar Injector and Pod Reconciler components in the control plane to implement the new way of configuring the transparent proxy as described in the MADR Transparent Proxy ConfigMap Handling Outside the Control Plane. This includes generating the config from merged sources, applying annotations, setting up Downward API and ConfigMap mounts, and removing the need for the control plane to access ConfigMaps in all namespaces.
Background
Previously, the control plane was responsible for assembling the full transparent proxy configuration and required access to ConfigMaps across all namespaces. With the new approach, each data plane component (
kuma-init
,kuma-sidecar
) will build its own configuration from mounted sources. The control plane will now only handle setting the correct annotations and mounts during sidecar injection.Tasks
kuma-system
ConfigMaptraffic.kuma.io/transparent-proxy-config
annotation/tmp/transparent-proxy/default/config.yaml
traffic.kuma.io/transparent-proxy-configmap-name
is present, mount the specified ConfigMap at/tmp/transparent-proxy/custom/config.yaml
--transparent-proxy-config
to bothkuma-init
andkuma-sidecar
Acceptance Criteria
traffic.kuma.io/transparent-proxy-config
annotation with computed values/tmp/transparent-proxy
--transparent-proxy-config=/tmp/transparent-proxy/default/config.yaml
and--transparent-proxy-config=/tmp/transparent-proxy/custom/config.yaml
are presentredirectPortInbound
,redirectPortOutbound
, oripFamilyMode
in the Dataplane resourceConfigMaps
in*
namespacesThe text was updated successfully, but these errors were encountered: