一键导入
gke-networking-edge
Workflows for configuring edge networking, ingress, and security on GKE.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Workflows for configuring edge networking, ingress, and security on GKE.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Systematically diagnose GKE JobSet interruptions, restarts, and preemptions for AI/ML training workloads. Identifies preemption events, maintenance interruptions, bad host VMs, unhealthy pods, and coordinator worker failures.
Diagnose and predict node disruption during Compute Engine host maintenance for GPU and TPU workloads.
Diagnose and prevent `vbar_control_agent` segfaults and OOMs caused by race conditions during TPU device resets and frequent metrics collection (e.g. every 3s). Use when TPU slice initialization fails or `vbar_control_agent` crashes on TPU v6e nodes.
Verifies if a GKE or Kubernetes cluster is unused (no active compute, external exposure, or persistent data) before allowing deletion. Evaluates external exposure (LoadBalancer Service, Ingress, Gateway, MultiClusterIngress), persistent data (Bound PVC), and active compute (Running/Pending Pods in user namespaces) with low-overhead queries and fail-close timeouts.
Monitor and manage GKE TPU Dynamic Slices custom resources. Use when checking slice lifecycle states, troubleshooting failed slice creations (e.g. SliceCreationFailed, FAILED), running single or multi-slice workloads, or safely deleting/disabling slices.
Monitor and troubleshoot GKE TPU workloads using GKE system metrics and PromQL.
| name | gke-networking-edge |
| description | Workflows for configuring edge networking, ingress, and security on GKE. |
This skill provides workflows for exposing applications running on GKE securely to the internet or internal networks.
The Gateway API is the modern way to manage routing in Kubernetes.
Prerequisites: Gateway API must be enabled on the cluster (enabled by default in GKE 1.24+).
Example Gateway Manifest:
apiVersion: gateway.networking.k8s.io/v1
kind: Gateway
metadata:
name: my-gateway
namespace: my-namespace
spec:
gatewayClassName: gke-l7-global-external-managed # GKE managed external L7 load balancer
listeners:
- name: http
protocol: HTTP
port: 80
Example HTTPRoute Manifest:
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: my-route
namespace: my-namespace
spec:
parentRefs:
- name: my-gateway
rules:
- matches:
- path:
type: PathPrefix
value: /
backendRefs:
- name: my-service
port: 80
Use standard Ingress for simpler use cases or legacy setups.
Example Ingress Manifest:
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: my-ingress
namespace: my-namespace
annotations:
kubernetes.io/ingress.class: "gce"
spec:
rules:
- http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: my-service
port:
number: 80
Cloud Armor provides WAF and DDoS protection.
Enable Cloud Armor via BackendConfig:
BackendConfig in GKE.Example BackendConfig:
apiVersion: cloud.google.com/v1
kind: BackendConfig
metadata:
name: my-backend-config
namespace: my-namespace
spec:
securityPolicy:
name: my-cloud-armor-policy
BackendConfig with your Service via annotations.Automatically provision and renew SSL certificates.
Example ManagedCertificate (Legacy Ingress):
apiVersion: networking.gke.io/v1
kind: ManagedCertificate
metadata:
name: my-certificate
spec:
domains:
- example.com
Reference it in Ingress annotations: networking.gke.io/managed-certificates: my-certificate.
Gateway API Approach:
Use the gateway.networking.k8s.io API with certificate management integration.
Container-native load balancing allows load balancers to target Kubernetes Pods directly, rather than targeting nodes. This improves latency and distribution.
Prerequisites: Cluster must be VPC-native.
How it works:
cloud.google.com/neg annotation.Example Service Manifest:
apiVersion: v1
kind: Service
metadata:
name: my-service
annotations:
cloud.google.com/neg: '{"ingress": true}' # Enabled for Ingress
spec:
ports:
- protocol: TCP
port: 80
targetPort: 8080
selector:
app: my-app
type: ClusterIP
Private Service Connect allows you to expose services in one VPC to consumers in another VPC securely, without VPC peering.
Steps:
ServiceAttachment referencing the load balancer.Example ServiceAttachment Manifest:
apiVersion: networking.gke.io/v1
kind: ServiceAttachment
metadata:
name: my-psc-attachment
namespace: my-namespace
spec:
connectionPreference: ACCEPT_AUTOMATIC
natSubnets:
- my-psc-nat-subnet # Subnet dedicated for PSC NAT
targetService:
name: my-service
namespace: my-namespace
Share the ServiceAttachment URI with consumers to create a PSC endpoint in their VPC.