aws 01 Adding Basic Authentication via NGINX in Kubernetes Basic Auth via NGINX in kubernetes 2022.10.26 · 1 min
devops 02 Routing stuff using traefik/nginx Using traefik/nginx as a Reverse Proxy. 2022.04.15 · 5 min
devops 03 Setting up OpenTelemetry in Django gUnicorn ASGI Setup OpenTelemetry for Django running on gUnicorn ASGI. 2022.01.29 · 3 min
devops 04 Using sidecar containers in k8s Pods are the basic unit of deployment in k8s and in a typical k8s setup, your application container is probably running inside a pod. Pods themselves are containers, and you can run multiple containers sharing the same volume and network interfaces of the pod concurrently. This is called the sidecar pattern. We run an emr django application connected to a RDS postgres database using RDS IAM auth. To make this work, we run a cronjob which generates a token every 10 minutes which is used by the a 2022.01.22 · 3 min
devops 05 Setting up AWS Amplify for a Next JS SSR app with Terraform Setting up Amplify for nextjs SSR via Terraform 2022.01.21 · 4 min
devops 06 Reducing our Deployment times by 87% Leveraging github actions by using state to determine whether to build a dockerimage or not. 2022.01.03 · 2 min
devops 07 Moving from AWS Loadbalancers to Nginx We run a k8s cluster for our healthcare EMR application. At the time, we only had one public facing service, so we used a Kubernetes Service of Type LoadBalancer. resource "kubernetes_service" "django" { metadata { name = "django" namespace = kubernetes_namespace.app_namespace.metadata[0].name annotations = tomap( { "service.beta.kubernetes.io/aws-load-balancer-ssl-cert" = var.django_acm_arn, "service.beta.kubernetes.io/aws-load-balancer-ssl-por 2021.12.18 · 2 min
devops 08 Connecting Django to RDS via pgbouncer using IAM auth Setting up the infra We primarily use a django backend with RDS postgres in a kubernetes cluster for production environments. We were trying to setup an environment which would be HIPAA compliant and secure as well, as well as keep complexity to a minimum in the backend layer. We decided to go with IAM authentication to connect to RDS for the django application. The tricky part was to figure out how we would add pgbouncer between RDS and django to manage connection pooling issues. We setup a 2021.07.10 · 3 min