Repository navigation
charts: add the Helm charts for Agent Substrate - #4149
Draft
Jeremy Alvis (iplay88keys) wants to merge 27 commits into
Draft
Jeremy Alvis (iplay88keys) wants to merge 27 commits into
Jeremy Alvis (iplay88keys) wants to merge 27 commits into
Conversation
- Add podcertcontroller flags for sharing the bundled pg instance with other pods - Add helm verify workflow Signed-off-by: Jeremy Alvis <jeremy.alvis@solo.io>
- add unit tests for charts Signed-off-by: Jeremy Alvis <jeremy.alvis@solo.io>
Signed-off-by: Jeremy Alvis <jeremy.alvis@solo.io>
Signed-off-by: Jeremy Alvis <jeremy.alvis@solo.io>
The kagent-dev/substrate charts started from an older copy of manifests/ate-install and missed later changes there: - Drop the -role and -binding suffixes from the API server and atelet ClusterRoles and bindings, and give each atelet resource its own rule. - Rename the egress ConfigMap to atenet-egress-agentgateway-substrate-config. - Reject WebSocket upgrades at the egress gateway with 403. - Give atelet a 330s termination grace period to cover its 5m drain. - Listen on every address family in the API server, and make the api Service PreferDualStack. - Connect the controller to the API server with k8s:///. - Mount the optional postgres-server-ca Secret in the API server. - Set OTEL_RESOURCE_ATTRIBUTES on the controller and the credential provider. Signed-off-by: Jeremy Alvis <jeremy.alvis@solo.io>
Signed-off-by: Jeremy Alvis <jeremy.alvis@solo.io>
Signed-off-by: Jeremy Alvis <jeremy.alvis@solo.io>
Signed-off-by: Jeremy Alvis <jeremy.alvis@solo.io>
Signed-off-by: Jeremy Alvis <jeremy.alvis@solo.io>
Signed-off-by: Jeremy Alvis <jeremy.alvis@solo.io>
The object-store plugin now reads its settings from objectStorePlugin extraEnv and credentialsSecret in both charts, and the snapshot location is required. The API server and atelet ServiceAccounts take annotations for workload identity. hack/install-rustfs.sh deploys RustFS for dev installs. Signed-off-by: Jeremy Alvis <jeremy.alvis@solo.io>
Signed-off-by: Jeremy Alvis <jeremy.alvis@solo.io>
global.imageRegistry now replaces the registry of objectStorePlugin.image, as it does for the images values. Signed-off-by: Jeremy Alvis <jeremy.alvis@solo.io>
Signed-off-by: Jeremy Alvis <jeremy.alvis@solo.io>
…t scenario Signed-off-by: Jeremy Alvis <jeremy.alvis@solo.io>
Signed-off-by: Jeremy Alvis <jeremy.alvis@solo.io>
Signed-off-by: Jeremy Alvis <jeremy.alvis@solo.io>
Signed-off-by: Jeremy Alvis <jeremy.alvis@solo.io>
Signed-off-by: Jeremy Alvis <jeremy.alvis@solo.io>
Signed-off-by: Jeremy Alvis <jeremy.alvis@solo.io>
Signed-off-by: Jeremy Alvis <jeremy.alvis@solo.io>
Signed-off-by: Jeremy Alvis <jeremy.alvis@solo.io>
Signed-off-by: Jeremy Alvis <jeremy.alvis@solo.io>
Signed-off-by: Jeremy Alvis <jeremy.alvis@solo.io>
… provider UID Signed-off-by: Jeremy Alvis <jeremy.alvis@solo.io>
Signed-off-by: Jeremy Alvis <jeremy.alvis@solo.io>
Signed-off-by: Jeremy Alvis <jeremy.alvis@solo.io>
This was referenced Nov 26, 2026
This branch has not been deployed
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.
Part-of: #79 (phase 1)
Summary
This change adds four Helm charts for Agent Substrate under
charts/. It covers phase 1 of the Helm install plan, apart from two follow-ups. The charts come fromkagent-dev/substrate, with changes for upstream.substrate-crdssubstrate-podcertsubstrate-ateletsubstratereleasesubstrateInstall the charts in the order of the table. Upgrade
substrate-podcertandsubstrate-ateletbeforesubstrate, as the version skew policy requires.Changes from the
kagent-dev/substratechartsThese changes need action during an upgrade from those charts:
substrate-ateletinstalls atelet. An upgrade of asubstraterelease that ran atelet deletes atelet, unless asubstrate-ateletrelease takes the atelet objects first.substratechart has the envoy data plane next to agentgateway. TheatenetDataPlanevalue has no default, so an upgrade fails until it names a data plane.substratechart no longer bundles RustFS.ateApi.snapshotLocationis required, unless thePerTemplateSnapshotLocationpreview gate is on.objectStorePlugin.extraEnvandobjectStorePlugin.credentialsSecret. Therustfs,objectStoreandatelet.storageBackendvalues are removed. WithoutATE_STORAGE_BACKEND, the plugin uses GCS, and the earlier charts used S3.docs/guides/egress-traffic.mddescribes. Atls_passthroughrule still allowswss://.Other changes:
manifests/ate-installthat the earlier charts missed. Examples are the RBAC names, dual-stack listeners, ServiceAccount token settings and the credential provider UID.substratechart can install the microVM SandboxConfig. It is off by default, because the chart does not upload the microVM assets.previewvalues reach every substrate container, asate-setup --previewdoes.createNamespacehave thehelm.sh/resource-policy: keepannotation.ghcr.io/agent-substrate/substrate.podcertcontroller flags
The
substrate-podcertchart sets two flags thatpodcertcontrollerdoes not have upstream. This change adds them:--postgres-client-service-accountnames the service account that can request PostgreSQL login certificates. The default isate-api-server, soate-setupinstalls do not change.--postgres-clientlets more service accounts request fixed logins, through thepostgresClientsvalue. It refuses the administrator loginpostgres.This Go change can move to a separate PR that merges first.
Tests and CI
charts/scenariosholds one directory for each supported configuration:kind-envoy,kind-agentgateway,external-postgresandmicrovm.hack/verify/chart-scenarios.shmakes sure that each scenario renders. The repo does not keep the renders.cmd/ate-setup/internal/chartcompareinstalls each scenario twice on envtest, once withate-setupand once with the charts. It fails on any difference thatdifferences.yamldoes not list.otelvalues, resource requests on every container and Secrets for credentials.hack/verify/chart-generated.shmakes sure that the copied CRDs, controller Role and Envoy configs matchmanifests/ate-install.helm-verifyworkflow runshelm lintandhelm unittest.helm-e2eworkflow installs the charts on kind and runs the e2e suites. It runs a smoke subset on Kubernetes 1.36 and every suite on 1.37.helm-e2eruns each data plane with the preview gates off and on, on gVisor and on microVM. Thehelm-e2e-testjob reports the result as one check.hack/install-charts-kind.sh,hack/install-postgres.shandhack/install-rustfs.shinstall the charts and their dependencies on kind.For reviewers
objectStorePlugin.image, the plugin args, startup probes and extra volumes, and the ServiceAccount annotations and pod labels of the API server and atelet. The defaults do not change the rendered objects. Please check the names.helm-e2eruns ten jobs on every PR, next to the foure2ejobs. Upstream runs agentgateway only after merge. Should a smaller set run on PRs?APIServerOnlyfield of theate-setupkube client exists only for the comparison test. Phase 3 deletes both. If you prefer, the test can mark the workloads ready itself instead.Not in this change
ate-setup createbefore Helm, so publishing starts in phase 3 or phase 4.PodMonitoring. These belong in provider repos ([EPIC] Make repository Provider Neutral #3161, [Bug]: Default install requires GKEPodMonitoringCRD #2589).substrate-podcert.Testing
helm lint,helm unittest,hack/verify-all.shandgo test -race ./...pass.helm-e2ejobs pass in this PR. The gVisor jobs also pass on local kind clusters.AI use
AI-assisted. I reviewed and tested every change.