Show HN: K8sAI – open-source GPT CLI tool for Kubernetes
Hey HN!<p>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!<p>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!<p>k8sAI operates with read-only kubectl commands to make sure your cluster stays safe.<p>All you need is an OpenAI API key and a valid kubectl config. Start chatting with k8sAI using:<p>$ pip install k8sAI<p>$ k8sAI chat
Or to fix an issue:
$ k8sAI fix -p=&quot;take a look at the failing pod in the test namespace&quot;<p>Any and all feedback is appreciated. Looking forward to hearing what you all have to say!<p>Cheers!