openstad / openstad-kubernetes

The Kubenernetes YAML files and the Helm chart for automated full stack deployment
https://www.open-stad.amsterdam/projecten/#
MIT License
4 stars 7 forks source link

Set MongoDB credentials for auth & frontend #72

Closed rudivanhierden closed 2 years ago

rudivanhierden commented 2 years ago

In https://github.com/openstad/openstad-frontend/pull/354 and https://github.com/openstad/openstad-oauth2-server/pull/112 new environment variables have been created to allow the auth & frontend services to connect to MongoDB with authentication.

This PR allows the k8s environment to make use of these new variables through secrets (fed by values).

There were a few small issues with linting that are also being resolved in this PR to allow for helm lint to pass succesfully.

rudivanhierden commented 2 years ago

Drafting this PR for now — I will test this k8s setup before marking it as Ready to review.

rudivanhierden commented 2 years ago

I have just finished testing this PR (with images for https://github.com/openstad/openstad-frontend/pull/354 and https://github.com/openstad/openstad-oauth2-server/pull/112) on our test cluster, and everything is working as intended!