一键导入
debug-vpa
Debug Vertical Pod Autoscaler issues by checking metrics, recommender logs, and eviction events.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Debug Vertical Pod Autoscaler issues by checking metrics, recommender logs, and eviction events.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | debug_vpa |
| description | Debug Vertical Pod Autoscaler issues by checking metrics, recommender logs, and eviction events. |
Follow these steps to diagnose issues with VPA not recommending resources or not updating pods.
VPA relies on the Metrics Server to gather historical usage data. If it's down, VPA won't work.
kubectl get deployment metrics-server -n kube-system
kubectl top nodes
kubectl top pods -A
If kubectl top fails or returns "Metrics not available", the Metrics Server is the issue.
Ensure the VPA recommender, updater, and admission-controller are running.
kubectl get pods -n kube-system -l app.kubernetes.io/name=vpa
Check the VPA object for Conditions and Recommendations.
kubectl get vpa -A
kubectl describe vpa <vpa-name> -n <namespace>
Look for Provided condition being True. If False, check the message field.
If recommendations are missing, check the recommender logs.
kubectl logs -n kube-system -l app=vpa-recommender
Look for permission errors or "no metrics" warnings.
If recommendations exist but pods aren't updating, check if the VPA Updater is evicting pods.
kubectl get events -n <namespace> --sort-by='.lastTimestamp'
Look for EvictedByVPA events.