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

Research possible integration with k8sGPT #3027

Open
Tracked by #2850
odubajDT opened this issue Feb 12, 2024 · 3 comments
Open
Tracked by #2850

Research possible integration with k8sGPT #3027

odubajDT opened this issue Feb 12, 2024 · 3 comments

Comments

@odubajDT
Copy link
Contributor

odubajDT commented Feb 12, 2024

Goal

K8sGPT is a tool for scanning your kubernetes clusters, diagnosing and triaging issues in simple english.

Do a research on how we can add Keptn to the list of integrations in K8sGPT cli. Also evaluate which Keptn functionality can be used by K8sGPT.

Questions for the research

  • Is it possible to integrate Keptn with K8sGPT?
  • How can Keptn become an official integration? Prometheus is one of the integrations already
  • What value will it have for Keptn/K8sGPT?

If possible, let's create a small PoC as part of this research (in the points where it makes sense).

@odubajDT odubajDT changed the title research possible integration with k8sGPT Research possible integration with k8sGPT Feb 12, 2024
@odubajDT odubajDT added research status: ready-for-refinement Issue is relevant for the next backlog refinment labels Feb 12, 2024
@mowies mowies removed the status: ready-for-refinement Issue is relevant for the next backlog refinment label Mar 13, 2024
Copy link
Contributor

This issue has been automatically marked as stale because it has not had recent activity. It will be
closed if no further activity occurs. Thank you for your contributions.

@sachin21212121
Copy link

Enhancing Kubernetes Cluster Management: Integrating Keptn with K8sGPT

Integrating Keptn with K8sGPT can significantly improve Kubernetes cluster management by combining Keptn's lifecycle orchestration with K8sGPT's AI-driven diagnostics. This research explores the feasibility, implementation steps, and value of this integration to enhance cluster monitoring, troubleshooting, and remediation.

Feasibility of Integration

K8sGPT supports integrations with external tools to enhance its diagnostic capabilities. Existing integrations, such as Prometheus and Trivy, provide additional data sources for analysis. Given Keptn’s event-driven architecture and its ability to provide real-time operational insights, integrating Keptn with K8sGPT is feasible and can enrich its diagnostic capabilities.
Keptn already supports various observability tools and automated remediation workflows, which align well with K8sGPT’s goal of simplifying Kubernetes issue detection and resolution. By integrating Keptn’s event-driven alerts with K8sGPT, a more intelligent troubleshooting system can be built, making cluster management more efficient.

Keptn Functionalities That Benefit K8sGPT

Keptn provides several functionalities that can be leveraged to improve K8sGPT's diagnostic and troubleshooting capabilities.

  1. Automated Monitoring
    Keptn provides observability, dashboards, and alerting mechanisms. These features can supply K8sGPT with real-time metrics and events, enabling it to diagnose issues with greater accuracy.
  2. Automated Delivery
    Keptn’s SLO-driven multistage delivery process can inform K8sGPT about deployment statuses. This allows for proactive issue detection and mitigation before they impact production workloads.
  3. Automated Operations and Remediation
    Keptn’s self-healing and remediation capabilities can be utilized by K8sGPT to suggest or even trigger automated fixes based on detected issues, reducing downtime and operational overhead.

Steps to Implement the Integration

  1. Develop a Keptn Service
    • A custom Keptn service needs to be developed to listen to Keptn events and forward relevant data to K8sGPT.
    • This service can be built using Keptn’s event-driven architecture to ensure seamless data flow.
  2. Utilize Webhooks
    • Keptn should be configured to send events via webhooks to K8sGPT. This will enable real-time issue detection and troubleshooting.
  3. Enhance K8sGPT Filters
    • K8sGPT’s filtering capabilities should be modified to process Keptn-generated events.
    • This will allow for more precise diagnostics based on deployment events and system health metrics.

Value Proposition

For Keptn

  • Enhanced monitoring and remediation capabilities with AI-driven diagnostics.
  • Faster, data-driven decision-making for incident response.
    For K8sGPT
  • Access to Keptn’s deployment and operational data, leading to more accurate diagnostics.
  • Improved ability to detect and resolve Kubernetes issues in real time.
    By combining Keptn’s automation capabilities with K8sGPT’s AI-powered diagnostics, Kubernetes operators can achieve more proactive and efficient cluster management.

Proof of Concept (PoC)

To validate this integration, a proof of concept can be developed with the following steps:

  1. Set Up Environments
    • Deploy both Keptn and K8sGPT in a test Kubernetes cluster.
  2. Develop Integration Components
    • Implement the custom Keptn service or configure webhooks for data exchange.
  3. Test Scenarios
    • Simulate deployment failures, scaling events, and alert triggers.
    • Monitor how K8sGPT processes and analyzes data received from Keptn.
      This PoC will help identify any challenges and demonstrate the practical benefits of the integration before it is proposed for official implementation.

Conclusion

By integrating Keptn’s event-driven automation with K8sGPT’s AI-powered diagnostics, a more resilient and self-healing Kubernetes environment can be achieved. This integration ensures smarter monitoring, faster issue resolution, and more proactive cluster management.

@sachin21212121
Copy link

please tell me @odubajDT @mowies do i need to make some changes to the research i have added?

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

No branches or pull requests

3 participants