GKE Productionize
Skill files2 files

references/

SKILL.md200 lines
1
---
2
name: gke-productionize
3
metadata:
4
version: "1.0.1"
5
category: Containers
6
description: Orchestrates comprehensive production readiness reviews and assessments for GKE clusters and workloads across scalability, security, reliability, observability, backup/DR, and cost optimization. Use when asked to productionize, prepare, assess, audit, or review a GKE cluster or workload before going live to production. Don't use for deep-dive single-domain implementation (use specific domain skills like gke-workload-scaling, gke-platform-security, gke-workload-security, gke-service-networking, gke-reliability instead).
7
---
8
9
# GKE Productionize Skill
10
11
This skill acts as a high-level orchestrator for preparing a GKE cluster and its
12
workloads for production readiness.
13
14
> [!IMPORTANT]
15
> This is a **meta-skill** or **orchestrator skill**. You are
16
> expected to invoke and run many other specialized skills listed in this
17
> document as part of the overall productionization process. Do not attempt to
18
> implement all production readiness features directly within this skill;
19
> instead, use this skill to assess the environment and then delegate to the
20
> specific skills for each domain.
21
22
## Attribution
23
24
**MUST READ**: Before executing any `gcloud`, REST API, or MCP command, you
25
MUST read [Usage Attribution](references/attribution.md). For commands executed
26
directly in the terminal (never in generated scripts, Terraform, or user code),
27
prefix `gcloud` with
28
`CLOUDSDK_METRICS_REQUEST_ATTRIBUTION="agent-skills/1.0 (skill:gke-productionize)"`
29
and append `agent-skills/1.0 (skill:gke-productionize)` to `User-Agent` headers.
30
31
## Scope
32
33
This skill is adaptable to:
34
35
- A single application (already on Kubernetes or not).
36
- A set of applications.
37
- A target cluster.
38
39
## Workflow
40
41
### 1. Discovery Phase
42
43
Before making recommendations, discover the current state of the environment.
44
45
#### Cluster Discovery
46
47
Run these commands to understand the cluster setup:
48
49
- Check cluster details: `gcloud container clusters describe {cluster_name}
50
--location {location} --project {project}`
51
- Check for Autopilot vs Standard: Look for the following block in the
52
describe output:
53
54
```yaml
55
autopilot:
56
enabled: true
57
```
58
- Check release channel: Look for `releaseChannel`.
59
60
#### Workload Discovery
61
62
If a specific application is targeted, discover its configuration:
63
64
- Get deployment/statefulset details: `kubectl get deployment {app_name} -n
65
{namespace} -o yaml`
66
- Check for dedicated namespace and labels: `kubectl get namespace {namespace}
67
-o yaml` (Look for Pod Security Standards labels).
68
- Check for dedicated service account usage: `kubectl get pods -n {namespace}
69
-o
70
custom-columns="NAME:.metadata.name,SERVICE_ACCOUNT:.spec.serviceAccountName"`
71
- Check for resource requests and limits.
72
- Check for liveness, readiness, and startup probes.
73
- Check for HPA: `kubectl get hpa -n {namespace}`
74
- Check for PDB: `kubectl get pdb -n {namespace}`
75
- Check for NetworkPolicies: `kubectl get networkpolicy -n {namespace}`
76
77
### 2. Production Readiness Assessment
78
79
**Before implementation, you MUST run the skills for each relevant specialized
80
area listed below and incorporate its guidance into your assessment and plan.
81
Failure to do so will result in a non-compliant production configuration.**
82
83
#### A. App Onboarding (Pre-Kubernetes)
84
85
If the application is not yet running on GKE, you MUST run the
86
`gke-app-onboarding` skill for planning containerization, image building, and
87
basic deployment.
88
89
#### B. Scalability & Resource Management
90
91
Ensure workloads have appropriate resources and autoscaling.
92
93
- **Action**: You MUST run the `gke-workload-scaling` skill for configuring
94
HPA, VPA, and resource limits.
95
96
#### C. Observability
97
98
Ensure adequate logging and monitoring are in place.
99
100
- **Action**: You MUST run the `gke-observability` skill for setting up Cloud
101
Logging, Monitoring, and Managed Prometheus.
102
103
#### D. Reliability
104
105
Ensure high availability and graceful degradation.
106
107
- **Action**: You MUST run the `gke-reliability` skill for configuring
108
regional clusters, PDBs, and health probes.
109
110
#### E. Security
111
112
Harden the cluster and workloads.
113
114
- **Action**: You MUST run the `gke-platform-security` and
115
`gke-workload-security` skills for Workload Identity, Network Policies, and
116
Shielded Nodes.
117
- **Namespace Isolation**: Ensure workloads run in dedicated namespaces with
118
Pod Security Standards (PSS) enforced via labels.
119
- **Least Privilege**: Ensure workloads use dedicated ServiceAccounts instead
120
of the `default` ServiceAccount.
121
122
#### F. Backup & Disaster Recovery
123
124
Ensure stateful data is protected.
125
126
- **Action**: You MUST run the `gke-backup-dr` skill for configuring Backup
127
for GKE and restore procedures.
128
129
#### G. Edge Security & Ingress
130
131
Secure external access.
132
133
- **Action**: You MUST run the `gke-service-networking` skill for Gateway API,
134
Ingress, and Cloud Armor.
135
136
#### H. Cost Optimization
137
138
Ensure efficient use of resources.
139
140
- **Action**: You MUST run the `gke-cost-optimization` skill for strategies on
141
rightsizing, quotas, and Spot VMs.
142
143
#### I. Upgrades & Maintenance Posture
144
145
Ensure a safe, predictable upgrade posture.
146
147
- **Action**: You MUST run the `gke-upgrades` skill for release channel
148
selection, maintenance windows/exclusions, and node pool upgrade strategy.
149
150
#### J. Golden Path Defaults Audit
151
152
Ensure the cluster configuration matches recommended defaults.
153
154
- **Action**: You MUST run the `gke-golden-path` skill to compare the cluster
155
against golden path defaults and report deviations with severity and
156
remediation.
157
158
### 3. Production Readiness Scoring
159
160
After the assessment, provide a summary report with a RAG (Red, Amber, Green)
161
status for each area and an overall readiness score. This helps prioritize
162
remediation efforts.
163
164
Apply this rubric deterministically so repeated assessments of the same
165
environment produce the same result:
166
167
1. **Per-domain criteria**: For each assessed domain (A-J), list the concrete
168
checks performed (from the domain skill's guidance) and classify each check
169
as **pass**, **fail-critical** (production-blocking, e.g., no resource
170
requests, no backups for stateful data, public control plane in a locked
171
down environment), or **fail-minor** (improvement, e.g., missing VPA
172
recommendations, no Spot usage for batch).
173
2. **RAG mapping (per domain)**:
174
- **Red** = one or more fail-critical checks.
175
- **Amber** = no fail-critical, but one or more fail-minor checks.
176
- **Green** = all checks pass.
177
3. **Domain score**: Green = 100, Amber = 50, Red = 0.
178
4. **Weighted overall score**: weight Security, Reliability, and Backup/DR at
179
2x; all other assessed domains at 1x. Overall score = sum(domain score x
180
weight) / sum(weights), rounded to the nearest integer. Exclude domains
181
that are not applicable (e.g., Backup/DR for fully stateless workloads) from
182
both sums and note the exclusion.
183
5. **Readiness verdict**: >= 90 with no Red domains = "Production ready";
184
70-89 with no Red domains = "Ready with follow-ups"; anything else =
185
"Not production ready".
186
187
In the report, show the per-domain check lists, RAG status, weights, and the
188
computed overall score.
189
190
## Adaptability Guidelines
191
192
- **Single App**: Focus on Health Probes, HPA, Resource Limits, PDB, and
193
Workload Identity for that specific app.
194
- **Cluster Wide**: Focus on Cluster Autoscaler, Multi-zonal setup, Release
195
Channels, Maintenance Windows, and default Network Policies.
196
- **Proactive Execution**: Proactively execute relevant skills (e.g.,
197
observability, security, scaling, reliability) to assess and propose
198
improvements, seeking user confirmation before applying state-changing
199
implementations.
200

© Google LLC · Apache 2.0 · source · posted by @OpenSourceBuffGuy on promptparty.com

@OpenSourceBuffGuy

I find openly licensed prompts and post them here.

0 followers · 13,398 prompts

More by @OpenSourceBuffGuy

See all
Blue and orange paint splash newspaper collage portrait prompt image

Blue and orange paint splash newspaper collage portrait

Turns a reference portrait into a blue-and-orange painted poster with paint splashes over a vintage newspaper collage, keeping the face identical.

image-prompt, reference-image, face-reference, style-transfer, portrait, digital-art, illustration, collage, poster, dramatic-lighting, vibrant-colors, limited-palette, close-up, nano-banana, photo-editing, medium-shot, negative-space, structured-output

Night street gang fight with game HUD prompt image

Night street gang fight with game HUD

Generates a 30-second open-world gangster gameplay clip with a detailed game HUD (minimap, bars, objectives, combo counter) and a timed street fight ending in a boss fight.

video-prompt, action, timed-beats, multi-shot, wan, video-games, cityscape, night-scene, neon, cinematic, photorealistic, tracking-shot, slow-motion, camera-movement, motion-graphics, visual-effects, for-gamers, for-content-creators, long-form

Purple supercar racing through neon-lit wet streets prompt image

Purple supercar racing through neon-lit wet streets

Generates a 15-second vertical neon street-racing sequence in four timed beats, from a red-light launch to a drift and a side-by-side final sprint.

video-prompt, action, timed-beats, multi-shot, camera-movement, tracking-shot, cars, neon, night-scene, cityscape, cinematic, photorealistic, wan, motion-blur, vertical-format, short-form-video, visual-effects, dramatic-lighting, low-angle, video-games, guardrails, for-content-creators

Reviews

Loading reviews…

Discussion

Loading comments…