我是 kubernetes 的初学者,我可以在最新的 calico.yaml 文件(在节点上安装 Calico)中看到监听默认 9099 端口的配置。
我正在几个节点上部署,并且该端口(9099)被占用,因为其他服务正在后台运行。
从日志中我可以看到:
2020-08-28 12:15:15.107 [ERROR][59] felix/health.go 246: Health endpoint failed, trying to restart it... error=listen tcp 127.0.0.1:9099: bind: address already in use
2020-08-28 12:15:16.108 [ERROR][59] felix/health.go 246: Health endpoint failed, trying to restart it... error=listen tcp 127.0.0.1:9099: bind: address already in use
2020-08-28 12:15:17.108 [ERROR][59] felix/health.go 246: Health endpoint failed, trying to restart it... error=listen tcp 127.0.0.1:9099: bind: address already in use
2020-08-28 12:15:18.109 [ERROR][59] felix/health.go 246: Health endpoint failed, trying to restart it... error=listen tcp 127.0.0.1:9099: bind: address already in use
日志来自 pod:
kube-system calico-node-d4ntt 1/1 Running 0 9m41s
kube-system calico-node-mjh4z 0/1 Running 3 3m31s
kube-system calico-node-p5lgf 0/1 Running 2 3m34s
kube-system calico-node-t4vmd 0/1 Running 2 3m30s
我们如何更新这个端口?在 yml 文件上我看不到端口。
我可以在 yml 文件中看到配置:
listenPort:
description: ListenPort is the port where BGP protocol should listen.
Defaults to 179
maximum: 65535
minimum: 1
但这不是阻止我部署的端口。