Medium
Detect duplicate Kubernetes HPA targets
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
- Software & IT Practitioner 9 Medium
More Software & IT problems
- Find leaked keys in config files Medium
- Find lock-order deadlock risks Medium
- Check exposed ports in docker compose Medium
- Check rate limits on sensitive endpoints Medium
- Find null-reference bugs Medium
All Software & IT problems → · Using TraceGrade for Software & IT hiring