Do Kubernetes Components Run Inside Containers?

May 4, 2025 7 answers
Asked by CuriousLearner79
I'm new to Kubernetes and trying to understand how its components, like the scheduler and API server, are implemented. Are these components actually running as services inside containers? I asked ChatGPT about it, and it seemed to agree, but I still have some doubts. Can anyone clarify?

Answers

CloudNavigator22
Great question! Youโ€™re right to question this. On managed services like EKS, GKE, or AKS, the control plane components typically run outside the cluster on the provider's infrastructure. In self-managed setups, like those configured with kubeadm, they mostly run as static pods. This means they are indeed in containers, but initiated by the kubelet rather than treated as standard services. If you're diving deeper, hands-on communities can provide lots of practical examples and support, so keep exploring!
Reply to this answer
TechExplorer42
It really depends on how you set up your cluster. If you're using kubeadm (which I recommend), most components run as static pods. You can find their YAML files in /etc/kubernetes/manifests. However, the kubelet itself runs as a service. You can check if it's active by running `systemctl status kubelet`. If you go the route of building a cluster from scratch, the components typically run as services rather than pods. So, seriously, use kubeadm if you can! Also, don't always rely on AI for this. I've gotten some mixed answers from AI when asking about Kubernetes.
Reply to this answer
GadgetGuru87
Just a thought: If you're going to rely on AI for learning, try to ask at least three different chatbots like Gemini, ChatGPT, or Sonnet. Everyone might give you a slightly different perspective, which can help clarify things. Also, Google can provide great resources, especially for architectures and diagrams. Sometimes I skipped the docs and jumped straight into installing Kubernetes (like using k3s) to get hands-on experience. Including keywords like 'best practices' or 'production grade' in your searches can also be super helpful!
Reply to this answer
BinaryWanderer
Generally, no. The components operate as services on the control plane nodes directly rather than within containers. Some unique setups might run them as pods for a concept called kubeception, but that's a bit unconventionalโ€”most setups don't go that route.
Reply to this answer
UserDeleted
[deleted]

InsightfulDeity: Sounds like you haven't explored enough installation methods for Kubernetes. There are indeed distributions where components run as pods or services!

Reply to this answer
DevDude94
Yes, in modern Kubernetes setups using kubeadm and similar tools, many components run as pods. These are managed via the kubelet manifests directory, so they do indeed run inside containers.
Reply to this answer
ContainerKing13
It varies. Some distributions, like Kind, run components in containers, while others like K3s have them all bundled into a single binary. The important thing is to realize that these components need to run somewhere, and you can choose where they operate based on your setup choice.
Reply to this answer

Add your answer

Answers are reviewed before publication.

Related Discussions