最新的 heapster 版本出现错误:v1.5.1
. 我已经在这个 github 问题链接中详细描述了:https ://github.com/kubernetes/heapster/issues/1969
错误信息:
Container Timestamp Message
heapster Mar 2, 2018, 11:03:20 AM /go/src/k8s.io/heapster/metrics/heapster.go:89 +0x458
heapster Mar 2, 2018, 11:03:20 AM main.main()
heapster Mar 2, 2018, 11:03:20 AM /go/src/k8s.io/heapster/metrics/heapster.go:194 +0x8d
heapster Mar 2, 2018, 11:03:20 AM main.createAndInitSinksOrDie(0xc42028f3b0, 0x1, 0x1, 0x0, 0x0, 0x4a817c800, 0x0, 0x0, 0xc420154740, 0x0, ...)
heapster Mar 2, 2018, 11:03:20 AM /go/src/k8s.io/heapster/metrics/sinks/factory.go:90 +0x563
heapster Mar 2, 2018, 11:03:20 AM k8s.io/heapster/metrics/sinks.(*SinkFactory).BuildAll(0xc4205e1cd8, 0xc42028f3b0, 0x1, 0x1, 0x0, 0x0, 0x7fb87afb8400, 0x0, 0x0, 0x0, ...)
heapster Mar 2, 2018, 11:03:20 AM goroutine 1 [running]:
heapster Mar 2, 2018, 11:03:20 AM
heapster Mar 2, 2018, 11:03:20 AM [signal SIGSEGV: segmentation violation code=0x1 addr=0x28 pc=0x15f77a3]
heapster Mar 2, 2018, 11:03:20 AM panic: runtime error: invalid memory address or nil pointer dereference
heapster Mar 2, 2018, 11:03:20 AM I0302 04:03:20.258025 1 configs.go:62] Using kubelet port 10255
heapster Mar 2, 2018, 11:03:20 AM I0302 04:03:20.258013 1 configs.go:61] Using Kubernetes client with master "https://kubernetes.default" and version v1
heapster Mar 2, 2018, 11:03:20 AM I0302 04:03:20.257857 1 heapster.go:79] Heapster version v1.5.1
heapster Mar 2, 2018, 11:03:20 AM I0302 04:03:20.257820 1 heapster.go:78] /heapster --source=kubernetes:https://kubernetes.default --sink="statsd:udp://dd-agent-service.default:8125"
有人知道如何解决吗?也许有人已经成功地将 heapster 集成到 Kubernetes 中的 datadog statsd 代理?
之前谢谢