mozmeao / infra

Mozilla Marketing Engineering and Operations Infrastructure
https://mozilla.github.io/meao/
Mozilla Public License 2.0
59 stars 12 forks source link

Setup K8s LoadBalancer/AWS ALB for www.firefox.com #1308

Closed bookshelfdave closed 4 years ago

bookshelfdave commented 4 years ago
pmac commented 4 years ago

This is mostly done for the staging instance. Just prod to go as well as DNS for domains.

bookshelfdave commented 4 years ago

we should be fine pushing everything to prod before the DNS switch, right?

pmac commented 4 years ago

definitely. just haven't done it. I can push the prod branch and the k8s resources should be created.

pmac commented 4 years ago

Okay. Done. Seems to have worked. https://gitlab.com/mozmeao/www.firefox.com/-/jobs/560855599

bookshelfdave commented 4 years ago

what else do we need before we request the DNS cutover?

pmac commented 4 years ago

We should get some real internal domains for these. e.g. fxc-prod.moz.works or fxc-stage.oregon-b.moz.works. After that we're going to hook the prod one up to CloudFlare I think (issue #1309). Then we'll be ready for DNS. I'd like to do some load testing before we cut over as well though.

duallain commented 4 years ago

I'm going to aim for this pattern for the alb domain name:

<svc>-<env>.<cluster>moz.works. fxc-stage.oregon-b.moz.works/ fxc-prod.oregon-b.moz.works.

Then, point cloudflare at a fxc-prod.moz.works, which will temporarily just be a cname to fxc-prod.oregon-b.moz.works, but when we add a second region would point to a traffic policy, that can do healthchecks and geo-ip stuff like bedrock.

@pmac anything wrong with the above? I think this matches bedrock's pattern today.

pmac commented 4 years ago

looks good to me 👍

duallain commented 4 years ago

Should be all done! 🎉