Hey HN!
I wanted to share an open-source project I’ve been working on called k8sAI. It’s a personal AI Kubernetes expert that can answer questions about your cluster, suggests commands, and even executes relevant kubectl commands to help diagnose and suggest fixes to your cluster, all in the CLI!
As a relative newcomer to k8s, this tool has really streamlined my workflow. I can ask questions about my cluster, k8sAI will run kubectl commands to gather info, and then answer those question. It’s also found several issues in my cluster for me - all I’ve had to do is point it in the right direction. I’ve really enjoyed making and using this so I thought it could be useful for others. Added bonus is that you don’t need to copy and paste into ChatGPT anymore!
k8sAI operates with read-only kubectl commands to make sure your cluster stays safe.
All you need is an OpenAI API key and a valid kubectl config. Start chatting with k8sAI using:
$ pip install k8sAI
$ k8sAI chat
Or to fix an issue:
$ k8sAI fix -p="take a look at the failing pod in the test namespace"
Any and all feedback is appreciated. Looking forward to hearing what you all have to say!
Cheers!