-
Notifications
You must be signed in to change notification settings - Fork 560
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
[Feature]: Constructing a Resource Graph in Kubernetes and Transmitting Information Including Subgraphs Near Problematic Nodes to LLM #1055
Comments
This is a really interesting concept. I think it could be a powerful feature. |
You could build a graph based on helm chart installed or using GitOps tools such as ArgoCD or FluxCD. FYI @kimchaeri |
oh, thank you for sharing that with me! |
https://github.com/benc-uk/kubeview Try using this tool for generating the graph. It builds something similar to what ArgoCD or FluxCD does for Kubernetes resources. @kimchaeri @qdrddr |
I think this looks like a clever approach. I believe we also want to distinguish ownership from selectors and labels when we build a graph or in general when we create relationships between K8s resources. Ownership by leveraging e.g a workload X may consist of an Ingress - Service - deployment - CronJob and K8sGPT would generate error messages specific to this workload
I think an integration with another OSS tool that provides this capability would be a great start. |
I was about to open a similar issue, and found this one. It makes perfect sense to take into account resource ownership by leveraging a tool like https://github.com/ahmetb/kubectl-tree Later on, we can include common label or annotations like the ones in argocd or helm to group applications. |
Checklist
Is this feature request related to a problem?
No
Problem Description
Currently, K8sGPT only provides the causes of errors and potential solutions for the respective components. Therefore, it sometimes provides inaccurate responses. However, if we construct the Kubernetes cluster as a graph and provide surrounding information of nodes where errors occur to LLM, it can provide more accurate answers. When conducting simple tests, I confirmed that providing context of the subgraph results in LLM providing more accurate answers.
Solution Description
Benefits
Potential Drawbacks
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: