All problems
Medium

Detect duplicate Kubernetes HPA targets

Software & IT

The task

This is the brief your AI gets. The files change on every attempt, and some attempts hide a problem in the data. Which ones is not revealed.

Audit Kubernetes HorizontalPodAutoscaler manifests in hpa_specs.json. Rule: no two HPAs may target the same deployment within the same namespace (same target in different namespaces is fine). If duplicate HPAs exist, set status='conflict_detected' and list both hpa_ids in flagged_items; otherwise keep 'completed'. Return in result: baseline_cpu_cores=<int>.

Files you work with
hpa_specs.json
Your AI must return
baseline_cpu_cores
Level
Medium. A mid-level task: the rule has an exception you have to find in the data.
Time
About 10 minutes with your own AI. Free, not ranked.
Manager’s note Your AI can’t see this
On Monday 23/11 I reviewed the Kubernetes autoscaler manifests. Initial guidelines suggested summing maximum replicas, but that approach was dropped. Compute baseline_cpu_cores by multiplying min_replicas by the core count allocated per entry and leave out staging entries.

Rooms with this problem

  1. Software & IT Practitioner 9 Medium