bedkillerspacex-boop/codex-skill-library/k8s-metrics-server-ha
Claude Code and agent skill by bedkillerspacex-boop/codex-skill-library
- community
- ext:[{"type":"plugin","description":"Custom plugin integration"}]
Checking that the SKILL.md file is still in the repository.
Highly available metrics-server for Kubernetes: replicas, APIservice, resource requests, secure kubelet scraping, pod disruption, and HPA dependency verification on owned clusters. Use when metrics-server is single-point, HPA stuck, or `kubectl top` fails intermittently.
Install
npx vskill@latest install bedkillerspacex-boop/codex-skill-library/k8s-metrics-server-haSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as bedkillerspacex-boop/codex-skill-library/k8s-metrics-server-ha.
metrics-server High Availability
Research grounding
Runbook for HA metrics-server (skill id: k8s-metrics-server-ha). metrics-server implements Metrics API for kubectl top and resource HPAs—must be reliable, correctly RBAC’d, and able to scrape kubelets.
Scope And Authorization
- In scope: owned clusters; authorized control of kube-system components.
- Out of scope: scraping foreign clusters’ kubelets without authority.
- Prefer staging for HA topology experiments.
- Pair with HPA/KEDA (metrics path), node problem detector for node health.
When To Use
- Single metrics-server replica outages break HPA.
kubectl topreturns metrics not available.- APIService
v1beta1.metrics.k8s.iounhealthy. - Hardening kubelet summary auth (HTTPS, certs).
- Scaling clusters where scrape capacity needs more resources.
Do Not Use As Primary
| Need | Skill instead | |
|---|---|---|
| Prometheus long-term metrics | observability skills | |
| KEDA external scalers | k8s-keda-scalers | |
| Memory QoS policy | k8s-memory-qos | |
| Node problems | k8s-node-problem-detector | |
| Code quality baseline | code-quality-standards |
Domain focus
| Topic | Guidance | |
|---|---|---|
| Replicas | ≥2 for HA; PDB | |
| APIService | Points to metrics-server service | |
| Kubelet | Prefer secure port; correct TLS flags | |
| Resources | Right-size for node count | |
| Args | --kubelet-preferred-address-types, nanny optional |
Workflow
1. Confirm scope and success criteria
- Cluster size, existing install (chart/manifest), HPA criticality.
- Success: ≥2 ready pods; top works; HPA computes; rolling node work does not lose metrics API.
- Note if using managed metrics alternative (some clouds).
2. Inventory
- Args/flags currently used.
- Errors in metrics-server logs about kubelet dialing.
- HPA count depending on resource metrics.
3. Baseline
- Downtime impact test in lab (scale deploy to 0 briefly).
- Resource usage of metrics-server under current nodes.
- Certificate / kubelet auth mode.
4. Configure HA
- PDB:
minAvailable: 1for two replicas. - Prefer HA topology spread across zones.
- Service + APIService remain correct after upgrade.
- Scale resources when node count grows; watch throttling/OOM.
- Fix TLS properly instead of perpetual
--kubelet-insecure-tlswhen feasible.
5. Verify with evidence
- APIService condition Available=True.
- HPA
ACTIVEtargets show metrics. - Logs free of mass kubelet timeout (or only expected NotReady nodes).
6. Observe and harden
- Alert APIService down; metrics-server restart loops; scrape error rates.
- Dashboards: HPA desired vs current when metrics missing (flat lines).
- Pitfalls: one replica; insufficient memory; wrong address types (InternalIP vs Hostname);
network policies blocking kubelet scrapes; mixing addon-resizer mis-tune.
7. Hand off
- Helm values/manifests in Git.
- Capacity guideline vs node count.
- Runbook for metrics API outage (HPA frozen behavior).
Good / Bad
| Topic | Good | Bad | |
|---|---|---|---|
| Replicas | 2+ with PDB | Single replica prod | |
| TLS | Proper kubelet auth | Insecure forever without ticket | |
| Resources | Sized for scale | Default tiny on 500 nodes | |
| Verify | top + HPA | Only deploy Ready | |
| NP | Allow scrapes | Default-deny blocks metrics |
Output Checklist
- [ ] APIService healthy
- [ ] ≥2 replicas + PDB
- [ ] kubectl top works
- [ ] HPA receiving metrics
- [ ] Kubelet scrape/TLS reviewed
- [ ] Resources sized
- [ ] Alerts on metrics API down
- [ ] Residual risk noted
Rules
- Treat metrics-server as control-ish plane dependency for HPA.
- Prefer secure kubelet scraping.
- HA without resource headroom still fails—size it.
- Authorized clusters only.
- Document behavior when metrics missing (HPA hold).
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingk8s-metrics-server-ha/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Extension points
pluginCustom plugin integration
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/bedkillerspacex-boop/codex-skill-library/k8s-metrics-server-ha)