Hey everyone! I'm hoping someone can help me out. I'm trying to figure out how to manage deployments from a central "main pod" in my Kubernetes setup. I came across the Kubernetes API, but I'm finding it a bit tricky to understand how to use it effectively. Any tips or guidance would be greatly appreciated. Thanks!
3 Answers
What you need is something like a Kubernetes Operator. It can handle this kind of management, but I'd recommend starting small to avoid overwhelming yourself. Have you thought about trying out Metacontroller? It could be enough for your needs!
Technically, you can access the Kubernetes API from inside a pod, but that's probably not the best approach. It's usually better to stick with standard Kubernetes resources and structures for deployment. Instead of trying to hit the API directly, consider using an Operator or some other standard method.
It sounds like you might be running into an XY problem here. Can you clarify what you're ultimately trying to accomplish? Understanding your end goal could help guide you to the right solution!
Yeah, that makes sense! Using built-in mechanisms is usually much cleaner.