本文介绍了Kubernetes:为在GKE上的kube-system名称空间中运行的heapster配置自定义influxdb接收器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要配置heapster以将kubernetes集群指标发送到我们的自定义Influx db服务器.为此,我尝试在kube-system命名空间中编辑heapster部署,但是一段时间后部署又恢复为原始状态.
我正在使用GKE,主版本为1.5.7,节点版本为1.5.6.

I need to configure heapster to send kubernetes cluster metrics to our custom influx db server . For this I tried to edit heapster deployment in kube-system namespace but after some time deployment is getting reverted to original state .
I am using GKE , master version is 1.5.7 and node version is 1.5.6 .

推荐答案

到目前为止,GKE不支持插件的自定义配置.对默认Heapster配置的任何更改都将由 addon-manager恢复.

As for now, a custom configuration of addons is not supported on GKE. Any changes to the default Heapster configuration will be reverted by addon-manager.

如果默认的Heapster配置不适用于您,请考虑将其关闭.为此,您需要禁用云监控和Horizo​​ntal Pod Autoscaler.请记住,没有默认的Heapster,您将无法在Stackdriver中获得指标或无法使用HPA.

If the default Heapster configuration doesn't work for you, consider turning it off. In order to do that you need to disable Cloud Monitoring and Horizontal Pod Autoscaler. Please bear in mind that without the default Heapster you won't get metrics in Stackdriver or have the ability to use HPA.

拥有两个Heapster实例也可以.您可以使用所需的配置创建自己的Heapster实例.这是一个示例部署规范.

Having two Heapster instances is also fine. You can create your own instance of Heapster with the configuration you need. Here's an example deployment spec.

这篇关于Kubernetes:为在GKE上的kube-system名称空间中运行的heapster配置自定义influxdb接收器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-17 03:51