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.
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 runkubectl apply -f [new-country].yml
.