We need a storage system for the Mongo instances. For this, we use (Persistent Volumes)[https://kubernetes.io/docs/concepts/storage/persistent-volumes/]
- When we make a claim, Kubernetes automatically makes the Persistent Volume for us based on the Storage Class defined.
Thanks to our smort teammate Matt, we have a NGINX service. We use this service as a reverse proxy. What this means is that none of our services are exposed. Instead, we expose our NGINX service, and it manages our routes to services!
### ConfigMap
In Kubernetes, a ConfigMap is a key-value store that stores configuration data for your application. The ConfigMap can then be mounted as a volume inside a container, allowing the configuration data to be read by the application running inside the container.
So we define the config in the (nginx.conf)[gcloud\nginx-service\nginx.conf] file and deploy it: