gpt4 book ai didi

Kubernetes 指标服务器 : Error from server (ServiceUnavailable): the server is currently unable to handle the request

转载 作者:行者123 更新时间:2023-12-02 11:30:31 24 4
gpt4 key购买 nike

执行命令 kubectl get --raw /apis/metrics.k8s.io/v1beta1它返回 Error from server (ServiceUnavailable): the server is currently unable to handle the request
从指标服务器查看日志
http: TLS handshake error from 192.168.133.64:51926:EOF
kubelet 版本是 1.12.3

指标服务器 0.3.1

我有另一个具有相同版本和配置的集群集,度量服务器工作得很好

指标服务器部署的一部分:
containers:
- name: metrics-server
image: k8s.gcr.io/metrics-server-amd64:v0.3.1
imagePullPolicy: Always
command:
- /metrics-server
- --kubelet-insecure-tls
volumeMounts:
- name: tmp-dir
mountPath: /tmp

最佳答案

看起来它失败了,因为主机名解析是通过内部 DNS 系统进行的,该系统具有 pods/service 条目但没有集群节点条目。
尝试使用以下参数运行您的指标服务器:

- command:
- /metrics-server
- --kubelet-insecure-tls
- --kubelet-preferred-address-types=InternalIP
它也应该对你有用。
有关更多信息,您可以查看以下问题 here
希望这可以帮助。

关于Kubernetes 指标服务器 : Error from server (ServiceUnavailable): the server is currently unable to handle the request,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53954995/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com