Repository navigation
Conversation
- Add `ax local <up|status|stop|delete>` to bootstrap a self-contained Kubernetes 1.36+ Kind cluster, loopback registry (127.0.0.1:5001), Agent Substrate v1.0.0-rc.1 (pure-Go CA pools + mTLS Postgres init + rustfs + k8s-credential-provider + gVisor WorkerPool), and AX. - Add `ax install` and `ax uninstall` to build/resolve @sha256-pinned AX images via `go-containerregistry/pkg/crane`, idempotently reconcile Substrate caller allowlists (ate-api-server, atenet-router, and k8s-credential-provider gated by ax.io/credential=true), and deploy or remove AX on any Kubernetes 1.36+ cluster. - Enhance `ax ctx [name]` to list kubeconfig contexts with live AX tunnel health and switch the active context via `kubectl config use-context`, while isolating router mTLS caches by cluster server+CA fingerprint. - Add English end-to-end walkthrough in `docs/local_installer.md` and sync `AGENTS.md`, `skills/substrate/SKILL.md`, and docs.
YoyinZyc
force-pushed
the
poc/ax-installer
branch
from
November 5, 2026 21:30
8a49fae to
dfbd45d
Compare
This was referenced Nov 15, 2026
Collaborator
Author
|
Closed in favor of #603 |
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.
Summary
This PR adds a self-contained CLI installer and local development stack so developers can stand up AX locally in one command and promote the exact same
Taskmanifests to a remote Kubernetes cluster (e.g., GKE) without manual YAML surgery or external setup scripts:ax local <up|status|stop|delete>: Bootstraps a local Kubernetes 1.36+ Kind cluster, Agent Substratev1.0.0-rc.1, and AX in one command (auto-downloadingkind/kubectlinto~/.ax/bin/on demand withoutsudo).ax install/ax uninstall: Resolves@sha256image digests (viago-containerregistry/pkg/crane), idempotently configures AX caller permissions in Agent Substrate (ate-api-server,atenet-router, andk8s-credential-providergated byax.io/credential="true"), and deploys/removesax-postgres+ax-server.ax ctx [name]: Lists kubeconfig contexts with live AX tunnel status and switches the active context (kubectl config use-context), while isolating cached router mTLS certs by clusterserver + CAfingerprint.For the full end-to-end user journey (local bootstrap -> task/snapshot verification -> zero-diff promotion to GKE -> cleanup), see
docs/local_installer.md.The installer follows three-layer installation:
related issue: #526
Note: the pr is just for poc.
Dependency Gaps, Trade-offs & Temporary Code
Several parts of
internal/install/exist solely to bridge current packaging gaps in upstream dependencies. They are intentionally isolated behind narrow package boundaries so they can be deleted cleanly once those gaps close:Upstream currently distributes Kustomize overlays +
ate-setup(requiring a Substrate git checkout,ko, andopenssl).ax local: Embed pre-rendered Substratev1.0.0-rc.1manifests (synced deterministically viahack/sync-substrate-manifests.shand checked againstgo.modin unit tests) and generate local CA/JWT keys + Postgres mTLS init in pure Go.- For
ax install: Reconcile Substrate caller allowlists by patchingate-systemflags/ConfigMaps viakubectl.- Delete
internal/install/substrate/(manifests/*.yaml,bootstrap.go,pki.go) andhack/sync-substrate-manifests.sh(~6,300 lines, mostly generated YAML), replacing them withhelm upgrade --install.- Delete
internal/install/axdeploy/authz.goonce caller allowlists are exposed via Helm values or declarative config.ghcr.io/google/ax/*) are not published yetMeanwhile, Substrate strictly requires
@sha256-pinned task images so gVisor snapshots stay valid across nodes.--from-source <dir>to cross-compile, build, and push AX images to a local loopback registry (127.0.0.1:5001) or a user's cloud registry.- Added
crane.Digesttag-to-@sha256resolution so standard registry tags work automatically once images are published.- Normal users will no longer need
--from-source(or a Go/Docker build environment onax install).- The local loopback registry setup in
internal/install/cluster/kind.go(ensureLocalRegistry) can be skipped/removed for defaultax local upruns.deploy/*.yaml) rather than a chartdeploy/embed.goembedsdeploy/postgres.yamlanddeploy/ax-server.yamlas the single source of truth and rewrites namespaces/image placeholders in Go.deploy/embed.gostring rendering can be removed in favor of chart values.go.mod change: Adds go-containerregistry v0.21.7 (matching Substrate) for OCI digest resolution and Docker keychain auth
Verification
go mod tidy,go build ./...,go test ./...,go vet ./...ax local up --from-source .->Taskapply /ssh/suspend/resume->ax local stop/up/deletelifecycle on a clean Linux environment.ax ctx+ax install --from-source . --image-repo <gar-repo>) andax uninstallagainst a live GKE 1.37 cluster running Agent Substratev1.0.0-rc.1.