why the service for api server is in default namespace instead of kube-system namespace? since kube-api pod run on kube-system namespace, why we have Kubernetes API service in default namespace?
why the service for api server is in default namespace instead of kube-system namespace? since kube-api pod run on kube-system namespace, why we have Kubernetes API service in default namespace?
Share Improve this question asked Jan 29 at 19:41 Emad KhavaninzadehEmad Khavaninzadeh 1117 bronze badges1 Answer
Reset to default 0Because when creating Kubernetes' new cluster, it has initial namespaces that help different projects, teams, or customers to share its Kubernetes cluster. The namespace for objects created by the Kubernetes system is called ‘kube-system’ which part of this core component is ‘kube-apiserver’ that exposes the Kubernetes HTTP API. Also, subdividing cluster namespaces, by default it will instantiate a ‘default’ namespace when provisioning the cluster to hold the default set of Pods, Services, and Deployments used by the cluster.