如何为Kubelet 1.13启用cadvisor? [英] How to enabled cadvisor for kubelet 1.13?
问题描述
如何为kubelet 1.13启用cadvisor?
How to enabled cadvisor for kubelet 1.13?
我想用cadvisor监视容器中的容器.有人说您应该启用
I want to cadvisor monitor containers in a pod. Somebody say you should enabled
kubelet --cadvisor-port=4194
但是我的kubelet版本是1.13,没有-cadvisor
参数.
but my kubelet version is 1.13 not have the --cadvisor
parameter.
推荐答案
但是,kubelet版本是1.13,没有--cadvisor参数.
However, kubelet version is 1.13 doesn't have the --cadvisor parameter.
实际上, ChangeLog-1.12 说
该kubelet开始使用--cadvisor-port的以前公开可用的cAdvisor Web UI在1.12中已被完全删除.如果仍然需要,建议的运行cAdvisor的方法是通过DaemonSet #65707
从最新的ChangeLogs中,您可以看到cAdvisor仍然存在-只是
From the latest ChangeLogs you can see that the cAdvisor is still there - it's just the flag to the kubelet that has been deprecated.
尽管已弃用了其UI,但仍然可以通过Prometheus监视您的容器.
Despite its UI has been deprecated it is still possible to monitor your containers via Prometheus.
关于K8s监控,有一个很好的如何" 资源通过DaemonSet运行它.
There is a good "How To" resource about K8s monitoring that explains how to run it via DaemonSet.
希望有帮助.
这篇关于如何为Kubelet 1.13启用cadvisor?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!