bedkillerspacex-boop/codex-skill-library/k8s-metrics-server-ha

Claude Code and agent skill by bedkillerspacex-boop/codex-skill-library

Trust tier 3
  • community
  • ext:[{"type":"plugin","description":"Custom plugin integration"}]
Source check pending

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-ha

Semi-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 top returns metrics not available.
  • APIService v1beta1.metrics.k8s.io unhealthy.
  • Hardening kubelet summary auth (HTTPS, certs).
  • Scaling clusters where scrape capacity needs more resources.

Do Not Use As Primary

NeedSkill instead
Prometheus long-term metricsobservability skills
KEDA external scalersk8s-keda-scalers
Memory QoS policyk8s-memory-qos
Node problemsk8s-node-problem-detector
Code quality baselinecode-quality-standards

Domain focus

TopicGuidance
Replicas≥2 for HA; PDB
APIServicePoints to metrics-server service
KubeletPrefer secure port; correct TLS flags
ResourcesRight-size for node count
Args--kubelet-preferred-address-types, nanny optional

Workflow

1. Confirm scope and success criteria
  1. Cluster size, existing install (chart/manifest), HPA criticality.
  2. Success: ≥2 ready pods; top works; HPA computes; rolling node work does not lose metrics API.
  3. Note if using managed metrics alternative (some clouds).
2. Inventory
bash
kubectl -n kube-system get deploy,pods -l k8s-app=metrics-server
kubectl get apiservice v1beta1.metrics.k8s.io -o yaml
kubectl get --raw /apis/metrics.k8s.io/v1beta1/nodes | head
kubectl top nodes
  1. Args/flags currently used.
  2. Errors in metrics-server logs about kubelet dialing.
  3. HPA count depending on resource metrics.
3. Baseline
  1. Downtime impact test in lab (scale deploy to 0 briefly).
  2. Resource usage of metrics-server under current nodes.
  3. Certificate / kubelet auth mode.
4. Configure HA
yaml
# conceptual Deployment bits
spec:
replicas: 2
template:
spec:
containers:
- name: metrics-server
resources:
requests: { cpu: 100m, memory: 200Mi }
# flags per version docs, e.g. secure kubelet:
# --kubelet-use-node-status-port
# --kubelet-insecure-tls # avoid in prod if possible; fix PKI instead
  1. PDB: minAvailable: 1 for two replicas.
  2. Prefer HA topology spread across zones.
  3. Service + APIService remain correct after upgrade.
  4. Scale resources when node count grows; watch throttling/OOM.
  5. Fix TLS properly instead of perpetual --kubelet-insecure-tls when feasible.
5. Verify with evidence
bash
kubectl -n kube-system rollout status deploy/metrics-server
kubectl top nodes
kubectl top pods -A | head
kubectl get hpa -A
# drain one metrics-server pod; top still works
  1. APIService condition Available=True.
  2. HPA ACTIVE targets show metrics.
  3. Logs free of mass kubelet timeout (or only expected NotReady nodes).
6. Observe and harden
  1. Alert APIService down; metrics-server restart loops; scrape error rates.
  2. Dashboards: HPA desired vs current when metrics missing (flat lines).
  3. Pitfalls: one replica; insufficient memory; wrong address types (InternalIP vs Hostname);

network policies blocking kubelet scrapes; mixing addon-resizer mis-tune.

7. Hand off
  1. Helm values/manifests in Git.
  2. Capacity guideline vs node count.
  3. Runbook for metrics API outage (HPA frozen behavior).

Good / Bad

TopicGoodBad
Replicas2+ with PDBSingle replica prod
TLSProper kubelet authInsecure forever without ticket
ResourcesSized for scaleDefault tiny on 500 nodes
Verifytop + HPAOnly deploy Ready
NPAllow scrapesDefault-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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/bedkillerspacex-boop/codex-skill-library/k8s-metrics-server-ha/badge)](https://verified-skill.com/skills/bedkillerspacex-boop/codex-skill-library/k8s-metrics-server-ha)

Something wrong with this skill or its page? Tell us.