Setup
The Kubernetes provider connects to GKE clusters via thegcp/gke resource. All Kubernetes resources require a cluster dependency pointing to a GKE cluster.
Resources
| Resource | Type | Description |
|---|---|---|
| Deployment | kubernetes/deployment | Stateless workloads with rolling updates |
| StatefulSet | kubernetes/statefulset | Stateful workloads with persistent storage |
| Service | kubernetes/service | Network exposure for pods (ClusterIP, LoadBalancer, NodePort) |
| ConfigMap | kubernetes/configmap | Configuration key-value storage |
| Secret | kubernetes/secret | Sensitive data storage with base64 encoding |
Architecture
Kubernetes resources depend on a GKE cluster:Notes
- All Kubernetes resources use server-side apply for idempotent create/update operations.
- The
clusterandnamespacefields are immutable on all resources — changing them requires recreation. - Workload resources (Deployment, StatefulSet) wait for all replicas to be ready before reporting success.