💻 Coding
Kubernetes Workload Affinity Map from Manifest Inventory (No Invented Replica Counts)
Turn a Kubernetes manifest inventory into a workload affinity map only. No invented replica counts, CPU totals, or uptime percents beyond the inventory.
0Reviews
Prompt
Act as a Kubernetes workload-affinity cartographer who only uses a pasted inventory. You write a workload affinity map the inventory already supports. You do not invent replica counts, CPU totals, uptime percents, or billing secrets not in Inputs. This is not a Kubernetes brand-kit generator; not a capacity guarantee. You work only from Inputs. Do not invent stats, citations, quotes, URLs, names, IDs, or records that are not in Inputs. Inputs: - Inventory I lock (workload stubs, affinity cues, namespace notes): [Inventory] - Kubernetes / API version notes I lock: [Version] - Cluster or namespace label I may quote (or UNKNOWN): [Workspace] - Required workload or map names I may quote (or UNKNOWN): [SpecNames] - Workload and Deployment labels already present (or UNKNOWN): [WorkloadCues] - Affinity and topology labels already present (or UNKNOWN): [AffinityCues] - Namespace and label notes already present (or UNKNOWN): [NamespaceNotes] - Words I must not use: [Banned] - What I must never invent (replica counts, CPU totals, uptime percents, billing secrets): [Never] - Output format: [Format] - Language: [Lang] Generate: 1. Honesty ledger: Inventory nouns, Version, Workspace, SpecNames, WorkloadCues, AffinityCues, NamespaceNotes, Lang. Forbidden: invented replica counts, CPU totals, uptime percents, billing secrets. Banner: not a Kubernetes brand-kit generator; not a capacity guarantee. 2. Workload affinity map: one numbered row per Inventory stub or cue. Missing NamespaceNotes write NOT IN INPUTS. Use Kubernetes Deployments, affinity, topologySpreadConstraints, and namespace language when Inventory supports it. Never print replica-count or CPU VALUES not in Inventory. 3. Spec name set: only names in SpecNames. Unnamed rows stay NOT IN INPUTS. Never invent uptime-percent VALUES not in Inventory. 4. Version lock: print Version. Refuse Kubernetes features newer than Version if Version is named. 5. Refuse list: inventing replica counts, inventing CPU totals, inventing uptime percents, inventing billing secrets. 6. Compliance pass: quote Banned and Never hits. Cut them. Format as Format. Constraints: - Map from Inventory only. No invented replica VALUES. Teach Kubernetes workload affinity maps, not a Docker Compose or Nomad swap. - Honor Version. No emojis. Never print secret VALUES; names only.
Instructions
Replace every [bracket] with your details before running. Works on ChatGPT, Claude, and Gemini.
Generated Output
This image was generated using the prompt above.

Examples
Example Input
Inventory: workload Harbor Quay api-deploy as pasted affinity cue zone-spread as pasted namespace notes harbor-prod as pasted; workload River Ops worker-deploy as pasted affinity cue soft-prefer as pasted. Replica invent NONE. CPU invent NONE. Version: Kubernetes 1.29 as pasted (do not invent unreleased AI scheduler pack) Workspace: Harbor Quay cluster desk as pasted SpecNames: api-deploy affinity map as pasted; worker-deploy affinity map as pasted. Uptime percents UNKNOWN. WorkloadCues: api-deploy as pasted; worker-deploy as pasted. ingress UNKNOWN. AffinityCues: zone-spread as pasted; soft-prefer as pasted. hard-anti UNKNOWN. NamespaceNotes: harbor-prod as pasted. Replica VALUES NOT IN INPUTS. Banned: guaranteed replicas, replica invent, CPU invent, uptime invent Never: invent replica counts, invent CPU totals, invent uptime percents, invent billing secrets Format: ledger + table + specs + version + refuse + compliance Lang: English
Example Output
1. Ledger. Inventory: workload Harbor Quay api-deploy as pasted affinity cue zone-spread as pasted namespace notes harbor-prod as pasted; workload River Ops worker-deploy as pasted affinity cue soft-prefer as pasted. Replica invent NONE. CPU invent NONE. Version Kubernetes 1.29 as pasted. Workspace Harbor Quay cluster desk. SpecNames api-deploy affinity map as pasted; worker-deploy affinity map as pasted. Uptime percents UNKNOWN. WorkloadCues api-deploy as pasted; worker-deploy as pasted. ingress UNKNOWN. AffinityCues zone-spread as pasted; soft-prefer as pasted. hard-anti UNKNOWN. NamespaceNotes harbor-prod as pasted. Replica VALUES NOT IN INPUTS. Lang English. Banner: not a Kubernetes brand-kit generator; not a capacity guarantee. Forbidden: invented replica counts, CPU totals, uptime percents, billing secrets, guaranteed replicas, replica invent, CPU invent, uptime invent. 2. Workload affinity map. 1. Harbor Quay api-deploy | WorkloadCues api-deploy as pasted | AffinityCues zone-spread as pasted | NamespaceNotes harbor-prod as pasted | replica VALUES NONE | CPU NONE | Kubernetes workload affinity map only. 2. River Ops worker-deploy | WorkloadCues worker-deploy as pasted | AffinityCues soft-prefer as pasted | NamespaceNotes beyond harbor-prod NOT IN INPUTS | replica VALUES NONE | CPU NONE. Uptime percents UNKNOWN so write uptime-percent VALUES NOT IN INPUTS. ingress not invented beyond WorkloadCues. 3. Spec name set. api-deploy affinity map as pasted; worker-deploy affinity map as pasted as SpecNames. Unnamed rows NOT IN INPUTS. Never invent uptime-percent VALUES. 4. Version lock. Kubernetes 1.29 as pasted as pasted. Refuse unreleased AI scheduler pack. 5. Refuse list. inventing replica counts; inventing CPU totals; inventing uptime percents; inventing billing secrets. 6. Compliance. Quoted Banned: guaranteed replicas, replica invent, CPU invent, uptime invent. Cut. Quoted Never: invent replica counts, invent CPU totals, invent uptime percents, invent billing secrets. Cut. Format ledger + table + specs + version + refuse + compliance. Missing-data policy: if a field was blank, write NOT IN INPUTS rather than guessing. Lock any tool version named in Inputs; if unnamed, write unknown. No invented testimonials, star ratings, or press logos. If legal, clinical, insurance, HR, education-plan, or veterinary content appears, add a one-line not-advice and de-identify banner. Quote banned-word hits and cut them. End with a gaps list of five bullets the user still owes you. Character and byte caps in the job are hard; print counts when relevant. Refuse to backfill DOIs, exam dumps, PHI, PII, or compensation promises not in Inputs.