What This Design Does:

A cloud-native three-tier web application on Kubernetes. An Ingress routes "/" to a frontend Deployment and "/api" to a backend Deployment through ClusterIP Services. The backend connects to a PostgreSQL Deployment via its own Service. Configuration comes from a ConfigMap, database credentials from a Secret, and PostgreSQL data persists on a PersistentVolumeClaim. All resources live in the cloud-app namespace.

Design Snapshot

Cloud-Native Web Application design snapshot

Caveats and Consideration:

- Requires an NGINX-compatible ingress controller in the cluster. - The backend image is a placeholder (http-echo); replace it with your own application image. - The Secret contains a sample password ("change-me"); replace it before any real deployment. - Postgres runs as a single replica with a 1Gi PVC and is intended for demonstration, not production.

Compatibility:

kubernetes
`