Skip to content

Commit b34fbee

Browse files
BenTheElderMushuEE
andauthored
[release-1.0] Cherry-pick agent-substrate#3642: Point the README GKE quickstart at the GKE installation guide (agent-substrate#3699)
Cherry-pick of agent-substrate#3642 onto `release-1.0` (`git cherry-pick -x` of the squash commit), it applied cleanly with no changes. AI use: AI-assisted. Clean pick. - [x] Tests pass - [x] Docs updated Signed-off-by: Grant McCloskey <gmccloskey@google.com> Signed-off-by: Benjamin Elder <bentheelder@google.com> Co-authored-by: Grant McCloskey <gmccloskey@google.com>
1 parent 67bc20a commit b34fbee

5 files changed

Lines changed: 15 additions & 73 deletions

File tree

‎README.md‎

Lines changed: 10 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -160,64 +160,7 @@ kubectl ate proxy actor my-counter-1 -a ate-demo-counter
160160
curl -X POST -i http://localhost:8000/
161161
```
162162

163-
### GKE Quickstart (Development)
164-
165-
1. Create and configure your environment file from the GKE example in
166-
[substrate-gke](https://github.com/ai-on-gke/substrate-gke/blob/main/tools/setup-gcp/ate-dev-env.sh.example) (`hack/ate-dev-env.sh.example` here is for kind):
167-
```bash
168-
curl -fsSLo .ate-dev-env.sh https://raw.githubusercontent.com/ai-on-gke/substrate-gke/main/tools/setup-gcp/ate-dev-env.sh.example
169-
170-
# Edit .ate-dev-env.sh to match your project and preferences, then source it:
171-
source .ate-dev-env.sh
172-
```
173-
174-
2. Enable application-default credentials for gcloud:
175-
```bash
176-
gcloud auth application-default login --project=${PROJECT_ID}
177-
```
178-
179-
3. Provision the required GCP resources (GKE cluster, GCS, and IAM bindings)
180-
with [`tools/setup-gcp`](https://github.com/ai-on-gke/substrate-gke/tree/main/tools/setup-gcp) in the
181-
[substrate-gke](https://github.com/ai-on-gke/substrate-gke) repository, which holds the GKE
182-
setup and teardown tooling. Its `bootstrap` command also creates the Workload
183-
Identity IAM grants that ate-api-server and atelet depend on. See
184-
[what `create iam` actually grants](https://github.com/ai-on-gke/substrate-gke/blob/main/tools/setup-gcp/README.md#what-create-iam-actually-grants)
185-
to audit them or apply them manually.
186-
187-
If you bring your own cluster instead, it needs the PodCertificateRequest and
188-
ClusterTrustBundle APIs, which GKE 1.37 and higher serve by default.
189-
190-
4. Deploy the Agent Substrate system to your cluster:
191-
```bash
192-
go run ./cmd/ate-setup deploy ate-system --credential-provider='{"name":"k8s.io"}' \
193-
--ingress-allowed-spiffe-ids=spiffe://cluster.local/ns/ate-system/sa/atenet-client
194-
```
195-
196-
`--ingress-allowed-spiffe-ids` lists the clients the router lets reach
197-
actors. The ID above is the one `kubectl ate proxy actor` presents. Without
198-
the flag no client reaches actors. See
199-
[Ingress to actors](docs/guides/operator-install.md#ingress-to-actors).
200-
201-
`--credential-provider` is required. `{"name":"k8s.io"}` also deploys the
202-
bundled Kubernetes Secrets provider, with a NetworkPolicy that admits only
203-
the egress gateway; `{"enabled":false}` turns egress credential injection off
204-
(see [docs/guides/egress-credential-injection.md](docs/guides/egress-credential-injection.md)).
205-
`ATE_CREDENTIAL_PROVIDER` in `.ate-dev-env.sh` is the same choice.
206-
207-
**Credential injection needs a namespace policy.** The bundled provider
208-
starts with an empty, default-deny one, so it resolves no Secrets until you
209-
grant each atespace the namespaces it may read; see
210-
[Enable it](docs/guides/egress-credential-injection.md#enable-it).
211-
212-
5. You can then deploy the sample applications. See [demos/counter/README.md](demos/counter/README.md) or [demos/sandbox/README.md](demos/sandbox/README.md) for detailed walkthroughs.
213-
```bash
214-
go run ./cmd/ate-setup deploy demo counter
215-
```
216-
217-
#### Custom Setup and Deployment
218-
219-
To create individual GCP resources, or to run the PostgreSQL store backend on
220-
Cloud SQL, see [`tools/setup-gcp`](https://github.com/ai-on-gke/substrate-gke/tree/main/tools/setup-gcp) in substrate-gke.
163+
### Custom Setup and Deployment
221164

222165
You can deploy or cleanup specific Agent Substrate components using
223166
the installation script. See `go run ./cmd/ate-setup` for all options.
@@ -229,23 +172,22 @@ go run ./cmd/ate-setup deploy apiserver
229172
go run ./cmd/ate-setup delete all
230173
```
231174

232-
#### Tearing down resources (GCP)
233-
234-
To delete the GCP resources, run substrate-gke's
235-
[`tools/setup-gcp/teardown.sh`](https://github.com/ai-on-gke/substrate-gke/blob/main/tools/setup-gcp/README.md#teardown). It deletes resources
236-
in the reverse order of creation and handles partial failures.
237-
238-
* `--all` deletes everything, including the dashboards, the snapshot transfer service account and the project-level IAM bindings, which every Substrate cluster in the project shares.
239-
* `--cluster-scoped` deletes only this cluster, its buckets and the bindings on them. Use it while other Substrate clusters still use the project.
240-
241-
#### Tearing down local `kind` resources
175+
### Tearing down local `kind` resources
242176

243177
If you need to delete the local `kind` cluster and its registry (if it was created by `hack/create-kind-cluster.sh`):
244178

245179
```bash
246180
./hack/delete-kind-cluster.sh
247181
```
248182

183+
### GKE Quickstart
184+
185+
To deploy on Google Kubernetes Engine, follow the official
186+
[GKE Installation Guide](https://docs.cloud.google.com/kubernetes-engine/ai-ml/install-overview-substrate).
187+
It lists the prerequisites and gives the one-line installer command. The
188+
installer's source and detailed options are in
189+
[substrate-gke](https://github.com/ai-on-gke/substrate-gke).
190+
249191
## Demos
250192

251193
We provide several sample applications demonstrating Agent Substrate's capabilities:

‎demos/claude-code-multiplex/README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ This guide assumes you know Kubernetes and the general shape of agent runtimes (
3737
## Prerequisites
3838

3939
- A k8s cluster with Agent Substrate installed as in the [Quickstart](../../README.md#quickstart-development)
40-
(with `ATE_INSTALL_KIND=true` exported in your shell) or [GKE Quickstart](../../README.md#gke-quickstart-development).
40+
(with `ATE_INSTALL_KIND=true` exported in your shell) or [GKE Quickstart](../../README.md#gke-quickstart).
4141
- `kubectl` configured against that cluster (the dashboard uses the operator's kubeconfig via [`client-go`](https://github.com/kubernetes/client-go) for pod-log reads).
4242
- Network reach to the substrate **api** gRPC service (`api.ate-system:443`). From outside the cluster, the dashboard port-forwards to it by itself. If you run the dashboard as a pod in the cluster, label its namespace `ate.dev/api-access=true`, because ate-system's NetworkPolicies admit API clients only from labeled namespaces (see [`ate-system-networkpolicies.yaml`](../../manifests/ate-install/ate-system-networkpolicies.yaml)).
4343
- An **Anthropic API key** (the agents call Claude).

‎demos/egress/README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ intercepted and carried over mTLS to a gateway that verifies who is making the r
6565

6666
The dataplane is selected when installing `ate-system`, not when installing this demo. Install as
6767
in the [Quickstart](../../README.md#quickstart-development) or
68-
[GKE Quickstart](../../README.md#gke-quickstart-development); for agentgateway, add
68+
[GKE Quickstart](../../README.md#gke-quickstart); for agentgateway, add
6969
`--atenet-dataplane=agentgateway` to `deploy ate-system`. The Actor, ActorTemplate, worker pool,
7070
test, and manual walkthrough are otherwise the same.
7171

@@ -103,7 +103,7 @@ rejects that option with agentgateway rather than silently omitting it.
103103
## Prerequisites
104104

105105
- A k8s cluster with Agent Substrate installed as in the [Quickstart](../../README.md#quickstart-development)
106-
(with `ATE_INSTALL_KIND=true` exported in your shell) or [GKE Quickstart](../../README.md#gke-quickstart-development), with the dataplane
106+
(with `ATE_INSTALL_KIND=true` exported in your shell) or [GKE Quickstart](../../README.md#gke-quickstart), with the dataplane
107107
[chosen above](#choose-a-dataplane). Egress is enabled by the ateapi flag above.
108108
- `kubectl` and `kubectl-ate` (`go install ./cmd/kubectl-ate`).
109109

‎demos/parking/README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ See [docs/concepts/request-parking.md](../../docs/concepts/request-parking.md) f
2525
## Prerequisites
2626

2727
- A k8s cluster with Agent Substrate installed as in the [Quickstart](../../README.md#quickstart-development)
28-
(with `ATE_INSTALL_KIND=true` exported in your shell) or [GKE Quickstart](../../README.md#gke-quickstart-development).
28+
(with `ATE_INSTALL_KIND=true` exported in your shell) or [GKE Quickstart](../../README.md#gke-quickstart).
2929
- A snapshot location set at install (`SNAPSHOT_LOCATION`). The demo stores its snapshots there.
3030

3131
## How to Run on Agent Substrate

‎docs/dev/suspend-resume-phase-breakdown.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ the report.
2121
* A cluster with Agent Substrate installed from a tree that has the records
2222
and the analysis tools: the
2323
[Quickstart (Development)](../../README.md#quickstart-development) for kind,
24-
or the [GKE Quickstart](../../README.md#gke-quickstart-development). For GKE
24+
or the [GKE Quickstart](../../README.md#gke-quickstart). For GKE
2525
the scripts below read `.ate-dev-env.sh` from the repository root
2626
(`collect_logs.sh` sources it itself; set `NO_DEV_ENV` to opt out).
2727
* A **microVM** or **gVisor** pool: both ateworkers write the inner records,

0 commit comments

Comments
 (0)