“A Kubernetes application with an ingress controller, a frontend namespace containing a web service and web pods, and a backend namespace containing an API service, API pods, and PostgreSQL; web pods call the API.”
看懂背後的決策。
Frontend and backend resources use separate namespaces.
Ingress reaches the frontend service.
API pods are the only application tier connected to PostgreSQL.
Use this to show namespace boundaries and calls across a two-tier Kubernetes application.
常見問題
What is a Kubernetes namespace?
A namespace is a logical grouping for resources within a Kubernetes cluster.
Can services communicate across namespaces?
Yes, services can be addressed across namespaces when networking permits it.
Why separate frontend and backend?
Separate namespaces make ownership, permissions, and policy boundaries clearer.