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

具体怎么使用 #53

Open
lan-teacher opened this issue Dec 28, 2022 · 11 comments
Open

具体怎么使用 #53

lan-teacher opened this issue Dec 28, 2022 · 11 comments
Assignees

Comments

@lan-teacher
Copy link

Please provide an in-depth description of the question you have:

What do you think about this question?:

Environment:

  • KubeEye version:
  • Others:
@lan-teacher
Copy link
Author

我部署了这个控制台, 这个控制台怎么获取到后端的数据啊,比如我本地的config是一个外部的k8s集群,kubectl apply -f https://raw.githubusercontent.com/kubesphere/kubeeye/main/deploy/kubeeye.yaml
kubectl apply -f https://raw.githubusercontent.com/kubesphere/kubeeye/main/deploy/kubeeye_insights.yaml
我部署了这个2个yaml,已经有数据产生, 我这个web控制台她怎么获取到这些部署,部署到同一个集群就行了吗

@lan-teacher
Copy link
Author

有沟通群吗

@lan-teacher
Copy link
Author

还有一个问题,多集群应该怎么使用巡检啊

@calvinyv
Copy link
Member

calvinyv commented Jan 4, 2023

@pixiake @chenz24 pls help on this issue

@pixiake
Copy link

pixiake commented Jan 4, 2023

还有一个问题,多集群应该怎么使用巡检啊

At present, this console is still being improved and it does not support inspection of multi-clusters. You can try cluster inspection saas based on kubeeye on KubeSphere Cloud.

@isyes
Copy link

isyes commented Jan 5, 2023

我部署了这个控制台, 这个控制台怎么获取到后端的数据啊,比如我本地的config是一个外部的k8s集群,kubectl apply -f https://raw.githubusercontent.com/kubesphere/kubeeye/main/deploy/kubeeye.yaml kubectl apply -f https://raw.githubusercontent.com/kubesphere/kubeeye/main/deploy/kubeeye_insights.yaml 我部署了这个2个yaml,已经有数据产生, 我这个web控制台她怎么获取到这些部署,部署到同一个集群就行了吗

In out of cluster mode, first configure the kubeconfig file in $HOME/.kube/config, then run go run web.go, the console would get the inpsection result and display the result in the console, the inspect results are stored in status field of crd resource clusterinsights.kubeeye.kubesphere.io.

@lan-teacher
Copy link
Author

我是这么做的,我本地部署的集群可以获取到, 但是我把config改成外部集群内容,在启动web,就没有数据展示了

@isyes
Copy link

isyes commented Jan 5, 2023

我是这么做的,我本地部署的集群可以获取到, 但是我把config改成外部集群内容,在启动web,就没有数据展示了

first, run the command kubectl get clusterinsights.kubeeye.kubesphere.io clusterinsight-sample -o yaml, check if you can get the inspection results.

@lan-teacher
Copy link
Author

kubectl get clusterinsight -o yaml. 这个有的

@isyes
Copy link

isyes commented Jan 6, 2023

kubectl get clusterinsight -o yaml. 这个有的

if the console have no data, pls check whether the kubeconfig's user have permissions to access to kubekey related sources.

@isyes
Copy link

isyes commented Jan 10, 2023

kubectl get clusterinsight -o yaml. 这个有的

first copy cluster's kubeconfig file to your host $HOME/.kube/config , and then run command go run web.go & npm run dev, then you can get data from console http://host:3001 or http://host:9088

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

No branches or pull requests

5 participants