Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

更改监听地址防止prometheus无法连接核心组件 #960

Closed
fanux opened this issue Apr 28, 2022 · 2 comments · Fixed by #961 or #962
Closed

更改监听地址防止prometheus无法连接核心组件 #960

fanux opened this issue Apr 28, 2022 · 2 comments · Fixed by #961 or #962
Assignees

Comments

@fanux
Copy link
Member

fanux commented Apr 28, 2022

Get "https://172.17.83.186:10259/metrics": dial tcp 172.17.83.186:10259: connect: connection refused

image

apiVersion: kubeadm.k8s.io/v1beta1
kind: InitConfiguration
...
controllerManager:
  extraArgs:
    address: "0.0.0.0"
scheduler:
  extraArgs:
    address: "0.0.0.0"
@fanux
Copy link
Member Author

fanux commented Apr 28, 2022

@fanux
Copy link
Member Author

fanux commented Apr 28, 2022

etcd需要改两个地方

第一需要监听0.0.0.0

image

Get "http://172.17.83.187:2381/metrics": dial tcp 172.17.83.187:2381: connect: connection refused

把prometheus values改成http端口2381访问etcd,取监控数据没必要走https:

kubeEtcd:
  service:
    enabled: true
    port: 2381
    targetPort: 2381

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants