首页 文章

无法获取pod指标以在水平pod autoscaling -Kubernetes中使用

提问于
浏览
0

我无法获得pod的指标 . “describe hpa”命令的结果如下所示 . 我不能自动测量!我安装了heapster .

result for describe hpa command
我的kubernetes版本和"get hpa"的结果在下面的截图中给出 .
enter image description here
请帮我自动缩放我的应用程序 . 使用此指令安装hpa https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale-walkthrough/#run-expose-php-apache-server . 我'm using digital ocean cloud to run my cluster. I' m无法通过"kubectl get pod"找到heapster pod,但是当我使用"--all-namespace"时,我可以查看heapster pod . 那意味着我没有正确安装heapster?帮我安装heapster或任何类似的东西来获取指标,这样我就可以使用它来获得hpa . 下面的屏幕截图显示了我的heapster pod的日志 .
enter image description here

1 回答

  • 0

    你可以运行 Kubectl get pods --all-namespaces
    在这里,您可以看到正在运行的命名空间 heapstar .

相关问题