gcp-gke-cluster-setup
Sets up and configures Google Kubernetes Engine (GKE) clusters for production use. Use when creating new GKE clusters, choosing between Autopilot vs Standard modes, configuring networking (VPC-native, private clusters), setting up node pools, or planning cluster architecture for Spring Boot microservices. Includes regional vs zonal decisions, security hardening, and resource provisioning guidance.
What this skill does
# GKE Cluster Setup ## Purpose Create production-ready GKE clusters with proper architecture, networking, and security configurations. This skill guides you through cluster creation, mode selection (Autopilot vs Standard), networking setup, and initial resource configuration. ## When to Use Use this skill when you need to: - Create a new GKE cluster for production or development - Choose between Autopilot and Standard cluster modes - Configure VPC-native networking and private clusters - Set up node pools with autoscaling - Enable security features (Workload Identity, private nodes) - Plan cluster architecture for Spring Boot microservices Trigger phrases: "create GKE cluster", "set up Kubernetes cluster", "Autopilot vs Standard", "configure GKE networking" ## Table of Contents - [Purpose](#purpose) - [When to Use](#when-to-use) - [Quick Start](#quick-start) - [Instructions](#instructions) - [Step 1: Decide Between Autopilot and Standard](#step-1-decide-between-autopilot-and-standard) - [Step 2: Select Cluster Type](#step-2-select-cluster-type-regional-vs-zonal) - [Step 3: Configure Networking](#step-3-configure-networking-vpc-native-required) - [Step 4: Enable Security Features](#step-4-enable-security-features) - [Step 5: Configure Node Pools](#step-5-configure-node-pools-standard-only) - [Step 6: Enable Monitoring and Logging](#step-6-enable-monitoring-and-logging) - [Step 7: Get Credentials and Verify](#step-7-get-credentials-and-verify) - [Examples](#examples) - [Requirements](#requirements) - [See Also](#see-also) ## Quick Start Choose your cluster mode and create it: ```bash # GKE Autopilot (Recommended for most use cases) gcloud container clusters create-auto CLUSTER_NAME \ --region=europe-west2 \ --enable-ip-alias # GKE Standard (if you need node control) gcloud container clusters create CLUSTER_NAME \ --region=europe-west2 \ --enable-ip-alias \ --machine-type=n2-standard-4 \ --num-nodes=3 ``` ## Instructions ### Step 1: Decide Between Autopilot and Standard **Choose Autopilot if:** - You have Spring Boot microservices (stateless, scalable) - You want Google to manage nodes and security - You benefit from per-pod billing (variable workloads) - Team focuses on application development, not infrastructure - You need rapid scaling and cost optimization **Choose Standard if:** - You need full control over node configuration - You have specific infrastructure requirements - You need custom kernel or privileged containers - You have dedicated Kubernetes operations expertise **Recommendation:** Use Autopilot for most new GKE deployments. It provides 99.9% SLA, automatic security patching, and cost savings up to 60%. ### Step 2: Select Cluster Type (Regional vs Zonal) **Regional (Production Recommended):** ```bash # 99.95% SLA for control plane # Control plane and nodes distributed across multiple zones gcloud container clusters create-auto CLUSTER_NAME \ --region=europe-west2 # Distributes across a, b, c zones ``` **Zonal (Development/Test Only):** ```bash # 99.5% SLA, single point of failure # Use only for non-critical environments gcloud container clusters create-auto CLUSTER_NAME \ --zone=europe-west2-a ``` ### Step 3: Configure Networking (VPC-Native Required) All production clusters must be VPC-native with proper IP allocation: ```bash gcloud container clusters create-auto CLUSTER_NAME \ --region=europe-west2 \ --network=wtr-vpc \ --subnetwork=wtr-cluster-subnet \ --enable-ip-alias \ --cluster-secondary-range-name=pods \ --services-secondary-range-name=services ``` **IP Ranges (Example):** - Primary (Nodes): `10.0.0.0/24` - Secondary Pods: `10.1.0.0/16` - Secondary Services: `10.2.0.0/20` ### Step 4: Enable Security Features ```bash gcloud container clusters create-auto CLUSTER_NAME \ --region=europe-west2 \ --enable-private-nodes \ --enable-private-endpoint \ --master-ipv4-cidr=172.16.0.0/28 \ --enable-master-authorized-networks \ --master-authorized-networks=203.0.113.0/24 ``` **Security Features:** - Private nodes (no public IPs) - Private endpoint (kubectl only from VPC) - Workload Identity enabled by default - Shielded nodes enabled by default ### Step 5: Configure Node Pools (Standard Only) For GKE Standard, create specialized node pools: ```bash # Production workloads gcloud container node-pools create production-pool \ --cluster=CLUSTER_NAME \ --region=europe-west2 \ --machine-type=n2-standard-4 \ --num-nodes=3 \ --enable-autoscaling \ --min-nodes=2 \ --max-nodes=10 # Batch/non-critical workloads (optional) gcloud container node-pools create batch-pool \ --cluster=CLUSTER_NAME \ --region=europe-west2 \ --machine-type=n2-standard-2 \ --spot # Up to 91% cheaper ``` ### Step 6: Enable Monitoring and Logging ```bash gcloud container clusters update CLUSTER_NAME \ --region=europe-west2 \ --logging=SYSTEM,WORKLOAD \ --monitoring=SYSTEM,WORKLOAD \ --enable-cloud-logging \ --enable-cloud-monitoring \ --enable-managed-prometheus ``` ### Step 7: Get Credentials and Verify ```bash # Get kubectl credentials gcloud container clusters get-credentials CLUSTER_NAME \ --region=europe-west2 \ --project=PROJECT_ID # Verify cluster access kubectl cluster-info kubectl get nodes ``` ## Examples ### Example 1: Production Autopilot Cluster ```bash #!/bin/bash # Create production-ready Autopilot cluster for Supplier Charges Hub CLUSTER_NAME="supplier-charges-production" REGION="europe-west2" PROJECT_ID="ecp-wtr-supplier-charges-prod" NETWORK="wtr-vpc" SUBNET="wtr-prod-subnet" gcloud container clusters create-auto $CLUSTER_NAME \ --region=$REGION \ --project=$PROJECT_ID \ --network=$NETWORK \ --subnetwork=$SUBNET \ --enable-ip-alias \ --cluster-secondary-range-name=pods \ --services-secondary-range-name=services \ --enable-private-nodes \ --enable-private-endpoint \ --master-ipv4-cidr=172.16.0.0/28 \ --enable-master-authorized-networks \ --master-authorized-networks=203.0.113.0/24 \ --logging=SYSTEM,WORKLOAD \ --monitoring=SYSTEM,WORKLOAD \ --release-channel=regular \ --enable-managed-prometheus # Get credentials gcloud container clusters get-credentials $CLUSTER_NAME \ --region=$REGION \ --project=$PROJECT_ID # Verify kubectl cluster-info ``` ### Example 2: Development Zonal Cluster ```bash # Quick dev/test cluster (lower cost, single zone) gcloud container clusters create-auto dev-cluster \ --zone=europe-west2-a \ --project=ecp-wtr-supplier-charges-labs ``` ### Example 3: GKE Standard with Multiple Node Pools ```bash # Create Standard cluster gcloud container clusters create managed-cluster \ --region=europe-west2 \ --machine-type=n2-standard-4 \ --num-nodes=3 \ --enable-autoscaling \ --min-nodes=2 \ --max-nodes=10 \ --enable-ip-alias \ --network=wtr-vpc \ --subnetwork=wtr-cluster-subnet # Add specialized batch node pool gcloud container node-pools create batch-pool \ --cluster=managed-cluster \ --region=europe-west2 \ --machine-type=n2-highmem-8 \ --spot \ --enable-autoscaling \ --min-nodes=0 \ --max-nodes=20 ``` ## Requirements - `gcloud` CLI configured with appropriate project and permissions - GCP project with GKE API enabled: `gcloud services enable container.googleapis.com` - VPC and subnets already created with secondary IP ranges - For private clusters: authorized networks configured (your office IP range) - IAM role: `roles/container.admin` or `roles/container.clusterManager` ## See Also - [gcp-gke-workload-identity](../gcp-gke-workload-identity/SKILL.md) - Set up secure service-to-service authentication - [gcp-gke-deployment-strategies](../gcp-gke-deployment-strategies/SKILL.md) - Deploy and update applications - [gcp-gke-troubleshooting](../gcp-gke-troubleshooting/SKILL.md) - Diagnose and fix cluster issues
Related in Backend & APIs
jfrog
IncludedInteract with the JFrog Platform via the JFrog CLI and REST/GraphQL APIs. Use this skill when the user wants to manage Artifactory repositories, upload or download artifacts, manage builds, configure permissions, manage users and groups, work with access tokens, configure JFrog CLI servers, search artifacts, manage properties, set up replication, manage JFrog Projects, run security audits or scans, look up CVE details, query exposures scan results from JFrog Advanced Security, manage release bundles and lifecycle operations, aggregate or export platform data, or perform any JFrog Platform administration task. Also use when the user mentions jf, jfrog, artifactory, xray, distribution, evidence, apptrust, onemodel, graphql, workers, mission control, curation, advanced security, exposures, or any JFrog product name.
cupynumeric-migration-readiness
IncludedPre-migration readiness assessor for porting NumPy to cuPyNumeric. Use BEFORE substantial porting work begins when the user asks whether code will scale on GPU, whether they should migrate to cuPyNumeric, which NumPy patterns transfer cleanly, what must be refactored before porting, or mentions pre-port assessment, scaling analysis, or refactor planning. Inspect the user's source code, look up NumPy usage, cross-reference the cuPyNumeric API support manifest, and distinguish distributed-scaling-friendly patterns from blockers such as unsupported APIs, scalar synchronization, host round-trips, Python/object-heavy control flow, shape/data-dependent branching, and in-place mutation hazards. Produce a verdict of READY, LIGHT REFACTOR, SIGNIFICANT REFACTOR, or NOT RECOMMENDED, with concrete refactor pointers.
alibabacloud-data-agent-skill
IncludedInvoke Alibaba Cloud Apsara Data Agent for Analytics via CLI to perform natural language-driven data analysis on enterprise databases. Data Agent for Analytics is an intelligent data analysis agent developed by Alibaba Cloud Database team for enterprise users. It automatically completes requirement analysis, data understanding, analysis insights, and report generation based on natural language descriptions. This tool supports: discovering data resources (instances/databases/tables) managed in DMS, initiating query or deep analysis sessions, real-time progress tracking, and retrieving analysis conclusions and generated reports. Use this Skill when users need to query databases, analyze data trends, generate data reports, ask questions in natural language, or mention "Data Agent", "data analysis", "database query", "SQL analysis", "data insights".
token-optimizer
IncludedReduce OpenClaw token usage and API costs through smart model routing, heartbeat optimization, budget tracking, and native 2026.2.15 features (session pruning, bootstrap size limits, cache TTL alignment). Use when token costs are high, API rate limits are being hit, or hosting multiple agents at scale. The 4 executable scripts (context_optimizer, model_router, heartbeat_optimizer, token_tracker) are local-only — no network requests, no subprocess calls, no system modifications. Reference files (PROVIDERS.md, config-patches.json) document optional multi-provider strategies that require external API keys and network access if you choose to use them. See SECURITY.md for full breakdown.
resend-cli
IncludedUse this skill when the task is specifically about operating Resend from an AI agent, terminal session, or CI job via the official resend CLI: installing/authenticating the CLI, sending/listing/updating/cancelling emails, batch sends, domains and DNS, webhooks and local listeners, inbound receiving, contacts, topics, segments, broadcasts, templates, API keys, profiles, or debugging Resend CLI/API failures. Trigger on mentions of Resend CLI, `resend`, `resend doctor`, `resend emails send`, `resend domains`, `resend webhooks listen`, `resend emails receiving`, or agent-friendly terminal automation.
alibabacloud-odps-maxframe-coding
IncludedUse this skill for MaxFrame SDK development and documentation navigation on Alibaba Cloud MaxCompute (ODPS). Helps answer MaxFrame API, concept, official example, and supported pandas API questions; create data processing programs; read/write MaxCompute tables; debug jobs (remote or local); and build custom DPE runtime images. Trigger when users mention MaxFrame, MaxCompute with MaxFrame, ODPS table processing, DPE runtime, MaxFrame docs/examples, DataFrame/Tensor operations, or GPU runtime setup. Works for both English and Chinese queries about Alibaba Cloud data processing with MaxFrame.