Skip to content
This repository has been archived by the owner on May 2, 2022. It is now read-only.

Migrated from virtual machines to kubernetes cluster with postgres #561

Merged
merged 3 commits into from
May 20, 2020

Conversation

michaelmcmillan
Copy link
Member

@michaelmcmillan michaelmcmillan commented Apr 10, 2020

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.

@michaelmcmillan michaelmcmillan changed the title WIP: Migrated from virtual machines to kubernetes cluster with postgres Migrated from virtual machines to kubernetes cluster with postgres Apr 10, 2020
@trkoch
Copy link

trkoch commented Apr 10, 2020

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.

@michaelmcmillan michaelmcmillan merged commit 1f558b0 into master May 20, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants