Hacker News new | ask | show | jobs
by mnahkies 785 days ago
kubectl also offers the `kubectl explain someresourcekind.someproperty` command which might be a nice way to get docs / schemas for CRDs (custom resource definitions) - though you'd need your tool to essentially RAG from the cluster in question to introspect it this way which might be a bit hairy
1 comments

I’ve noticed the GPT agent running kubectl explain when trying to diagnose an issue. I think it could be a nice enhancement to have a way to place that into the context ahead of time, but the commands would have to be a bit more rigid in that the user would have to specify the resource to explain ahead of time.

I’ll add an issue for this though since I think it could definitely improve the performance!