Week 5 of Grow

Hi!

I hope you’re all doing well. 🙂

I’d like to share Week 5 of my portfolio.

I hit a lot of roadblocks in Week 4, and I got stuck in Ingress hell.

For Week 5, I changed directions a bit, and went with MongoDB for the database, instead of PostgreSQL.

These are my reflections: https://rmiravalles.github.io/grow/reflections/week-5/

Please feel free to criticize or suggest changes or improvements.

I also added secrets to this deployment. I still need some help with secrets, though. Can anyone give me a hand here?

What is the best way to handle secrets? Is it to store them as environment variables? To use another approach?

For this lab, I either called the secret directly, like this: username $(kubectl get secret mongodb-secret -o jsonpath='{.data.username}' | base64 -d)

Or I stored them as environemnt variables, like this: export MONGO_USER=$(kubectl get secret mongodb-secret -o jsonpath='{.data.username}' | base64 -d)

I suspect, however, that are better options when it comes to handling secrets. How do you guys do it? What are the best practices?

Thanks in advance! Enjoy the rest of the weekend!