You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@hertzbeat.apache.org by "Figure43 (via GitHub)" <gi...@apache.org> on 2024/09/13 06:19:21 UTC
[I] [Question] K8S 部署的hertzbeat新增Kubernets监控测试连接失败 [hertzbeat]
Figure43 opened a new issue, #2711:
URL: https://github.com/apache/hertzbeat/issues/2711
### Question

环境:
Kubernetes:v1.28
hertzbeat:1.6.0
在监控中心添加监控K8S 无法连接,按照 使用指南中的 方法二获取的Token
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@hertzbeat.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@hertzbeat.apache.org
For additional commands, e-mail: notifications-help@hertzbeat.apache.org
Re: [I] [Question] K8S 部署的hertzbeat新增Kubernets监控测试连接失败 [hertzbeat]
Posted by "LiuTianyou (via GitHub)" <gi...@apache.org>.
LiuTianyou commented on issue #2711:
URL: https://github.com/apache/hertzbeat/issues/2711#issuecomment-2351654080
please refer to https://github.com/apache/hertzbeat/issues/2096 to modify the monitoring template
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@hertzbeat.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@hertzbeat.apache.org
For additional commands, e-mail: notifications-help@hertzbeat.apache.org
Re: [I] [Question] K8S 部署的hertzbeat新增Kubernets监控测试连接失败 [hertzbeat]
Posted by "LiuTianyou (via GitHub)" <gi...@apache.org>.
LiuTianyou commented on issue #2711:
URL: https://github.com/apache/hertzbeat/issues/2711#issuecomment-2351640818
@Figure43 Hi, please make sure the apiServer port is correct and open, the hertzbeat and apiServer networks are interconnected.
If you are already using Kubernetes Dashboard, you can use the same token you use to log in to Kubernetes Dashboard to configure monitoring.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@hertzbeat.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@hertzbeat.apache.org
For additional commands, e-mail: notifications-help@hertzbeat.apache.org
Re: [I] [Question] K8S 部署的hertzbeat新增Kubernets监控测试连接失败 [hertzbeat]
Posted by "Figure43 (via GitHub)" <gi...@apache.org>.
Figure43 closed issue #2711: [Question] <title> K8S 部署的hertzbeat新增Kubernets监控测试连接失败
URL: https://github.com/apache/hertzbeat/issues/2711
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@hertzbeat.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@hertzbeat.apache.org
For additional commands, e-mail: notifications-help@hertzbeat.apache.org
Re: [I] [Question] K8S 部署的hertzbeat新增Kubernets监控测试连接失败 [hertzbeat]
Posted by "LiuTianyou (via GitHub)" <gi...@apache.org>.
LiuTianyou commented on issue #2711:
URL: https://github.com/apache/hertzbeat/issues/2711#issuecomment-2351642786
@zhzhy86 If you are already using Kubernetes Dashboard, you can use the same token you use to log in to Kubernetes Dashboard to configure monitoring.
Or you can try to get a token and configure monitoring by following the steps below:
```shell
kubectl create serviceaccount dashboard-admin -n kube-system
kubectl create clusterrolebinding dashboard-admin --clusterrole=cluster-admin --serviceaccount=kube-system:dashboard-admin
# This token will expire after 24 hours
kubectl create token dashboard-admin -n kube-system --duration=24h
```
I tested in k3s v1.28.2 and was able to get the token and configure it in hertzebeat
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@hertzbeat.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@hertzbeat.apache.org
For additional commands, e-mail: notifications-help@hertzbeat.apache.org
Re: [I] [Question] K8S 部署的hertzbeat新增Kubernets监控测试连接失败 [hertzbeat]
Posted by "zhzhy86 (via GitHub)" <gi...@apache.org>.
zhzhy86 commented on issue #2711:
URL: https://github.com/apache/hertzbeat/issues/2711#issuecomment-2348157972
同上问题,我用的是K3S v1.29
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@hertzbeat.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@hertzbeat.apache.org
For additional commands, e-mail: notifications-help@hertzbeat.apache.org