Create test environments in Kubernetes
Posted on 2022-02-20 in Programmation • Tagged with Devops, Kubernetes
Posted on 2022-02-20 in Programmation • Tagged with Devops, Kubernetes
Posted on 2022-01-30 in Programmation • Tagged with Devops, Kubernetes
It can be a good idea to shutdown part of your infrastructure when you don't need it. It will help you reduce costs and your environmental impact. It is however, not always easy to actually do it.
In this article, I'll talk here about how to shutdown a Kubernetes based …
Posted on 2021-10-17 in Programmation • Tagged with security, gcp, gke, kubernetes
I recently switched from a standard GKE cluster where I had to manage nodes to an autopilot one where Google does it for me. I must say the switch was easy to do (despite an interruption of our services) and greatly simplified the management of the cluster.
I noticed this …
Posted on 2021-04-25 in Trucs et astuces • Tagged with Docker, Kubernetes
When you deploy a frontend app, most of the time the name of your assets contains their hash so you can easily cache the files. So instead of just having main.js you will have something like main.1234.js. The problem is that your HTML will reference main.1234 …
Posted on 2021-04-01 in Trucs et astuces • Tagged with devops, k8s, kubernetes, Django, Python
I recently deployed a React app in kubernetes. It was initially deployed directly in a public bucket: I have an API that is already hosted on kubernetes, but the app itself is made only of static files, so it made sense. However, requirements for my app changed and I required …
Posted on 2021-03-31 in Trucs et astuces • Tagged with devops, k8s, kubernetes, Django, Python
This will be a continuation of my article Some tips to deploy Django in kubernetes. In this previous article, I talked about generic tips you should apply to deploy Django into kuberentes. Here, I'll focus on static files.
If you don't already know that, gunicorn (or any other app server …
Posted on 2021-03-29 in Trucs et astuces • Tagged with devops, k8s, kubernetes, Django, Python
I am not going to go into details in this article about how you can deploy Django in kubernetes. I am just going to highlight the main points you should pay attention to when deploying a Django app. I expect you to have prior knowledge about how to deploy an …
Posted on 2021-03-21 in Trucs et astuces • Tagged with devops, k8s, kubernetes
You can extract data from your kubernetes config maps into a .env file with the commands below (requires you to have jq installed):
# Get the data in JSON. kubectl get configmap my-map --output json | # Extract the data section. jq '.data' | # Replace each "key": "value" pair with "key=value" jq -r …