mirror of
https://github.com/agent-substrate/substrate.git
synced 2026-11-10 10:13:50 +08:00
The Create Cluster warning explained the beta-API creation-time constraint but not which GKE versions work. Clarifies the two supported configurations: **GKE 1.36 with the beta APIs enabled at cluster creation**, or **GKE 1.37+** where `certificates.k8s.io/v1beta1` is served by default (no beta enablement needed). Versions below 1.36 are unsupported. - [x] Tests pass (docs only) - [x] Appropriate changes to documentation are included in the PR --- Also updates `hack/ate-dev-env.sh.example`: it pinned `1.35.5-gke.1163012` — below the supported floor and no longer offered, so copying it verbatim failed cluster creation. Now pins the newest offered 1.36 patch (`1.36.3-gke.1767000`) with a comment on how to pick a fresh one when the pin ages out. **Validated**: `setup-gcp create cluster` at `1.36.3-gke.1767000` (us-west1-c) succeeded, and both `certificates.k8s.io/v1beta1` APIs (`clustertrustbundles`, `podcertificaterequests`) are served on the resulting cluster — `kubectl get clustertrustbundles` returns the kube-apiserver-serving bundle. Throwaway cluster deleted after verification. --------- Co-authored-by: Aditya Shantanu <aditya-shantanu@users.noreply.github.com>
48 lines
1.9 KiB
Plaintext
48 lines
1.9 KiB
Plaintext
# Copyright 2026 Google LLC
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
# Example environment variables for Substrate development.
|
|
# Copy this file to .ate-dev-env.sh and customize it for your environment.
|
|
|
|
export PROJECT_ID=${USER}-gke-dev
|
|
export PROJECT_NUMBER=$(gcloud projects describe ${PROJECT_ID} --format="value(projectNumber)")
|
|
|
|
export GCE_REGION=us-west1
|
|
export CLUSTER_LOCATION=us-west1-c
|
|
|
|
export NETWORK=default
|
|
export SUBNETWORK=default
|
|
|
|
export CLUSTER_NAME=substrate-poc
|
|
# Supported: 1.36 (needs the beta APIs enabled at cluster creation, which
|
|
# setup-gcp does) or 1.37+ (APIs served by default). Anything below 1.36 does
|
|
# not work. GKE retires patch versions over time — if cluster creation rejects
|
|
# this pin, pick a current one from:
|
|
# gcloud container get-server-config --zone ${CLUSTER_LOCATION} --format="value(defaultClusterVersion)"
|
|
# See tools/setup-gcp/README.md ("Create Cluster") for the full constraint.
|
|
export CLUSTER_VERSION=1.36.3-gke.1767000
|
|
export NODE_POOL_NAME=gvisor-pool
|
|
export NODE_POOL_VERSION=1.36.3-gke.1767000
|
|
export GVISOR_NODE_MACHINE_TYPE=c3-standard-4
|
|
|
|
# Set this if you are using an existing cluster with a different context name.
|
|
export KUBECTL_CONTEXT=
|
|
|
|
export BUCKET_NAME=snapshot-substrate-test-${PROJECT_ID}
|
|
|
|
export KO_DOCKER_REPO="gcr.io/${PROJECT_ID}/ate-images"
|
|
|
|
# Set this if you want to override the default build platforms
|
|
export KO_DEFAULTPLATFORMS=linux/amd64
|