k8sgpt-operator
k8sgpt-operator copied to clipboard
[Feature]: add interval on ai backend request
Checklist
- [X] I've searched for similar issues and couldn't find anything matching
- [X] I've discussed this feature request in the K8sGPT Slack and got positive feedback
Is this feature request related to a problem?
No
Problem Description
No response
Solution Description
add ai backend request interval. if set, Sends requests to the AI backend server at set intervals, independent of the reconciler loop. this interval should be equal or higher than reconciliation's requeue interval.
Benefits
More control over ai backend requests.
Potential Drawbacks
No response
Additional Information
No response
@JuHyung-Son I think we should move this to the operator's repo, right ?
oh right i will move this
@VaibhavMalik4187 would you like to assign it to you ?
@VaibhavMalik4187 would you like to assign it to you ?
Yes please
@arbreezy, @JuHyung-Son, I've been working on this issue but I have a few questions.
- Why not just adjust the existing reconcile interval based on the interval value received from the user?
- Is there any specific reason behind keeping the interval equal to or longer than the existing reconcile interval?
good questions!
- Because reconcile does lots of things. like create new deployments, read k8sgpt crd, k8sgpt analyze ... and we want to add llm backend request interval. so it should be seperated. it will make problem if reconcile interval is 1 hour.
- llm request should be called after reconciler execute k8sgpt analyze.
good questions!
1. Because reconcile does lots of things. like create new deployments, read k8sgpt crd, k8sgpt analyze ... and we want to add llm backend request interval. so it should be seperated. it will make problem if reconcile interval is 1 hour. 2. llm request should be called after reconciler execute k8sgpt analyze.
Understood, thanks for the detailed answers.