k8sgpt-operator
k8sgpt-operator copied to clipboard
[Feature]: manual restart of k8sgpt-deployment pod needed when openai-api-key gets changed
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?
Yes
Problem Description
I needed to change the openai-api-key but the old key was used until I restarted the k8sgpt-deployment pod. From my point of view this is suboptimal.
Solution Description
We should mount the secret as a vollume and reread it if it gets changed.
Benefits
When changing the openai-api-key in the kubernetes secret there is no other manual thing to do.
Potential Drawbacks
No response
Additional Information
No response
I think it's easier to sort out this by watching the changes in the secret and then restart the container to read the new value, otherwise we have to change the serve mode in k8sgpt