Loading
Enable Istio ambient mode by default
General MR
Summary
Makes Istio ambient the default mesh mode for Big Bang 4.0 by setting istio.ambient.enabled: true in chart/values.yaml. Sidecar mode is still supported with istio.ambient.enabled: false (ADR 0013). Umbrella CI now treats tests/test-values.yaml as the ambient run, and a new tests/test-values-sidecar.yaml overlay replaces tests/test-values-ambient.yaml to keep sidecar mode covered.
- Unit tests that never set the mesh mode relied on the old sidecar default. They now set
istio.ambient.enabled: falseso they keep covering the sidecar path. Tests that check default values now have a separate ambient-default case. - Depends on big-bang/pipeline-templates/pipeline-templates!1600 (merged), which adds
tests/test-values-sidecar.yamlto the umbrella dynamic test patterns. Without it, the sidecar scenario doesn't run in CI.
Relevant logs/screenshots
- Helm unit tests: 655 passed across 108 suites. Before the test updates, the flip failed 46 tests that assumed sidecar mode; master passes all 650.
- BATS: 211 passed, including the updated values-overlay tests.
helm templatewith the umbrella test values: the default render includes ztunnel and istio-cni (41 HelmReleases); with the sidecar overlay it includes neither (35).- package-validation pipeline 5800883 ran the same flip with the pipeline-templates!1600 changes and generated
sidecar clean installandoci clean install. skip-job-upgrade: the upgrade job moves NeuVector from sidecar to ambient without the migration bridge and stalls onneuvector-cert-upgrader-job(pipeline 5801057), as described in the migration guide.
Linked Issue
Closes #3496 (closed)
Upgrade Notices
- Istio ambient mode is now the default. Deployments that never set
istio.ambient.enabledswitch from Istio sidecars to ambient mode (ztunnel) on upgrade. ambient also turns on theistioCNI,ztunnel, andgatewayAPIpackages. To stay on sidecar mode, setistio.ambient.enabled: false. - Upgrading a live sidecar environment to ambient follows Migrating a Big Bang Environment from Sidecar Mode to Ambient Mode. NeuVector needs that guide's temporary bridge (
istio.mtls.mode: PERMISSIVEand an allow-all custom authorization policy inneuvector.values) while its pods roll from sidecar to ambient; without it the upgrade can stall onneuvector-cert-upgrader-job. Remove the bridge once every NeuVector pod is ambient. - With ambient mode on, Big Bang enables network policies and Istio authorization policies for all packages, even if
networkPolicies.enabledorauthorizationPolicies.enabledisfalse, because ambient relies on them for cross-namespace traffic. - Deployments that disable Istio (
packages.istiod.enabled: false) must also setistio.ambient.enabled: false. Otherwise rendering fails withistioCNI requires istiod to be enabled.
Edited by Rob Ferguson