BustByte / coronastatus

Anonymous crowd sourcing of COVID-19 symptoms all over the world (with public data sets)!
MIT License
174 stars 89 forks source link

Migrated from virtual machines to kubernetes cluster with postgres #561

Closed michaelmcmillan closed 4 years ago

michaelmcmillan commented 4 years ago

To primarily reduce costs I've setup a k8s cluster with a managed postgres database. It uses cert-manager to deal with ssl certs and nginx as ingress. A DigitalOcean load balanacer sits in front to tunnel traffic to the ingress.

I've also added a Dockerfile, which we used to have, to build containers. These get pushed to Docker Hub for now, as GitHub's package registry don't support k8s pulls.

Deploying a new site is pretty easy. Just copy norway.yml, replace the country code and the domain, and run kubectl apply -f [new-country].yml.

trkoch commented 4 years ago

Impressive! 👏

Based on what we have discussed, I created a gist for the german version of the site. Not sure if the www. redirect is necessary.