We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
操作步骤均按照ReadMe
#查找日志如下: [root@iZbp10ru9qlshughyusadqwnZ k8s-mon]# kubectl logs -l app=k8s-mon-deployment -n kube-admin -f level=debug ts=2021-06-02T15:34:22.587+08:00 caller=common.go:493 msg=DoCollectSuccessfullyReadyToPush funcName=kubelet_node seq=2/3 metrics_num=99 time_took_seconds=0.025667392 level=debug ts=2021-06-02T15:34:22.594+08:00 caller=common.go:493 msg=DoCollectSuccessfullyReadyToPush funcName=kubelet_node seq=3/3 metrics_num=101 time_took_seconds=0.033676828 level=debug ts=2021-06-02T15:34:22.600+08:00 caller=push.go:25 msg=PushWorkSuccess funcName=kubelet_node url=http://localhost:2080/api/collector/push metricsNum=101 time_took_seconds=0.006431675 level=debug ts=2021-06-02T15:34:22.600+08:00 caller=push.go:25 msg=PushWorkSuccess funcName=coredns url=http://localhost:2080/api/collector/push metricsNum=44 time_took_seconds=0.032007075 level=debug ts=2021-06-02T15:34:22.602+08:00 caller=push.go:25 msg=PushWorkSuccess funcName=kubelet_node url=http://localhost:2080/api/collector/push metricsNum=99 time_took_seconds=0.013030715 level=debug ts=2021-06-02T15:34:22.630+08:00 caller=common.go:493 msg=DoCollectSuccessfullyReadyToPush funcName=kubelet_node seq=1/3 metrics_num=128 time_took_seconds=0.068968997 level=debug ts=2021-06-02T15:34:22.638+08:00 caller=push.go:25 msg=PushWorkSuccess funcName=kubelet_node url=http://localhost:2080/api/collector/push metricsNum=128 time_took_seconds=0.007533717 level=debug ts=2021-06-02T15:34:22.647+08:00 caller=kube_state_metrics.go:32 msg=DoKubeStatsMetricsCollectCurlTlsMetricsApiRes resNum=4186 level=debug ts=2021-06-02T15:34:22.652+08:00 caller=kube_state_metrics.go:244 msg=DoCollectSuccessfullyReadyToPush funcName=kube-stats-metrics metrics_num=4216 time_took_seconds=0.092715748 metric_addr=http://kube-state-metrics.kube-system:8080/metrics level=debug ts=2021-06-02T15:34:22.774+08:00 caller=push.go:25 msg=PushWorkSuccess funcName=kube-stats-metrics url=http://localhost:2080/api/collector/push metricsNum=4216 time_took_seconds=0.122264488 level=debug ts=2021-06-02T15:34:52.559+08:00 caller=common.go:459 msg=GetServerAddrByGetPodorNode funcName=coredns num=2 level=error ts=2021-06-02T15:34:52.559+08:00 caller=common.go:450 msg=GetServerAddrByGetPodErrorNoValue funcName:=kube-scheduler level=error ts=2021-06-02T15:34:52.559+08:00 caller=kube_scheduler.go:21 msg=GetServerSideAddrEmpty funcName:=kube-scheduler level=error ts=2021-06-02T15:34:52.559+08:00 caller=common.go:450 msg=GetServerAddrByGetPodErrorNoValue funcName:=kube-controller-manager level=error ts=2021-06-02T15:34:52.559+08:00 caller=kube_controller_manager.go:19 msg=GetServerSideAddrEmpty funcName:=kube-controller-manager level=debug ts=2021-06-02T15:34:52.560+08:00 caller=common.go:459 msg=GetServerAddrByGetPodorNode funcName=kubelet_node num=3 level=error ts=2021-06-02T15:34:52.561+08:00 caller=common.go:450 msg=GetServerAddrByGetPodErrorNoValue funcName:=api-server level=error ts=2021-06-02T15:34:52.561+08:00 caller=kube_apiserver.go:27 msg=GetServerSideAddrEmpty funcName:=api-server level=error ts=2021-06-02T15:34:52.561+08:00 caller=common.go:450 msg=GetServerAddrByGetPodErrorNoValue funcName:=etcd level=error ts=2021-06-02T15:34:52.561+08:00 caller=kube_etcd.go:21 msg=GetServerSideAddrEmpty funcName:=etcd level=error ts=2021-06-02T15:34:52.562+08:00 caller=common.go:450 msg=GetServerAddrByGetPodErrorNoValue funcName:=kube-proxy level=error ts=2021-06-02T15:34:52.562+08:00 caller=common.go:547 msg=GetServerSideAddrEmpty funcName:=kube-proxy
The text was updated successfully, but these errors were encountered:
apiserver不在pod中需要手动指定
Sorry, something went wrong.
是除了etcd之外,出现的所有error都是因为没有指定api-server的地址吗
抱歉,我的问题,说明看漏了,现在问题已经解决了,感谢您
No branches or pull requests
操作步骤均按照ReadMe
#查找日志如下:
[root@iZbp10ru9qlshughyusadqwnZ k8s-mon]# kubectl logs -l app=k8s-mon-deployment -n kube-admin -f
level=debug ts=2021-06-02T15:34:22.587+08:00 caller=common.go:493 msg=DoCollectSuccessfullyReadyToPush funcName=kubelet_node seq=2/3 metrics_num=99 time_took_seconds=0.025667392
level=debug ts=2021-06-02T15:34:22.594+08:00 caller=common.go:493 msg=DoCollectSuccessfullyReadyToPush funcName=kubelet_node seq=3/3 metrics_num=101 time_took_seconds=0.033676828
level=debug ts=2021-06-02T15:34:22.600+08:00 caller=push.go:25 msg=PushWorkSuccess funcName=kubelet_node url=http://localhost:2080/api/collector/push metricsNum=101 time_took_seconds=0.006431675
level=debug ts=2021-06-02T15:34:22.600+08:00 caller=push.go:25 msg=PushWorkSuccess funcName=coredns url=http://localhost:2080/api/collector/push metricsNum=44 time_took_seconds=0.032007075
level=debug ts=2021-06-02T15:34:22.602+08:00 caller=push.go:25 msg=PushWorkSuccess funcName=kubelet_node url=http://localhost:2080/api/collector/push metricsNum=99 time_took_seconds=0.013030715
level=debug ts=2021-06-02T15:34:22.630+08:00 caller=common.go:493 msg=DoCollectSuccessfullyReadyToPush funcName=kubelet_node seq=1/3 metrics_num=128 time_took_seconds=0.068968997
level=debug ts=2021-06-02T15:34:22.638+08:00 caller=push.go:25 msg=PushWorkSuccess funcName=kubelet_node url=http://localhost:2080/api/collector/push metricsNum=128 time_took_seconds=0.007533717
level=debug ts=2021-06-02T15:34:22.647+08:00 caller=kube_state_metrics.go:32 msg=DoKubeStatsMetricsCollectCurlTlsMetricsApiRes resNum=4186
level=debug ts=2021-06-02T15:34:22.652+08:00 caller=kube_state_metrics.go:244 msg=DoCollectSuccessfullyReadyToPush funcName=kube-stats-metrics metrics_num=4216 time_took_seconds=0.092715748 metric_addr=http://kube-state-metrics.kube-system:8080/metrics
level=debug ts=2021-06-02T15:34:22.774+08:00 caller=push.go:25 msg=PushWorkSuccess funcName=kube-stats-metrics url=http://localhost:2080/api/collector/push metricsNum=4216 time_took_seconds=0.122264488
level=debug ts=2021-06-02T15:34:52.559+08:00 caller=common.go:459 msg=GetServerAddrByGetPodorNode funcName=coredns num=2
level=error ts=2021-06-02T15:34:52.559+08:00 caller=common.go:450 msg=GetServerAddrByGetPodErrorNoValue funcName:=kube-scheduler
level=error ts=2021-06-02T15:34:52.559+08:00 caller=kube_scheduler.go:21 msg=GetServerSideAddrEmpty funcName:=kube-scheduler
level=error ts=2021-06-02T15:34:52.559+08:00 caller=common.go:450 msg=GetServerAddrByGetPodErrorNoValue funcName:=kube-controller-manager
level=error ts=2021-06-02T15:34:52.559+08:00 caller=kube_controller_manager.go:19 msg=GetServerSideAddrEmpty funcName:=kube-controller-manager
level=debug ts=2021-06-02T15:34:52.560+08:00 caller=common.go:459 msg=GetServerAddrByGetPodorNode funcName=kubelet_node num=3
level=error ts=2021-06-02T15:34:52.561+08:00 caller=common.go:450 msg=GetServerAddrByGetPodErrorNoValue funcName:=api-server
level=error ts=2021-06-02T15:34:52.561+08:00 caller=kube_apiserver.go:27 msg=GetServerSideAddrEmpty funcName:=api-server
level=error ts=2021-06-02T15:34:52.561+08:00 caller=common.go:450 msg=GetServerAddrByGetPodErrorNoValue funcName:=etcd
level=error ts=2021-06-02T15:34:52.561+08:00 caller=kube_etcd.go:21 msg=GetServerSideAddrEmpty funcName:=etcd
level=error ts=2021-06-02T15:34:52.562+08:00 caller=common.go:450 msg=GetServerAddrByGetPodErrorNoValue funcName:=kube-proxy
level=error ts=2021-06-02T15:34:52.562+08:00 caller=common.go:547 msg=GetServerSideAddrEmpty funcName:=kube-proxy
The text was updated successfully, but these errors were encountered: