-
Compare kustomize overlays
More often than I like, I have to compare different kustomize overlays in order to check how my overlays differ. Luckily we can simply do this with diff: $ diff \ <(kubectl kustomize $OVERLAYS/staging) \ <(kubectl kustomize $OVERLAYS/production) |\ diff with kustomize an example For demonstration purposes im using my standard simpl... Read More
-
Using exitcodes to wait for infra to boot
I am working with a lot infrastructure and often need to execute commands after on of my servers comes online or in other cases one script that manipulates another server, needs to wait for it to reboot. This is especially the case when you are “terraforming” or “ansibleling” bare metal clusters and would like the your backup cluster to provisi... Read More
-
Restarting a container without downtime
In this post I will try to explain how to restart your running pods with kubectl. the old way Before Kubernetes version 1.15, we mostly had only one choice to restart a deployment that is running and was to sacle down our deployment with kubectl scale deployment mydeployment --replicas=0 -n mynamespace followed by an increase in replicas ri... Read More
-
Update the timezone in a running alpine container
If you are like me you are often facing the problem that the dev container you are currently using is using a timezone different to your own. Certificate creation is amongst the best examples for a frustrating job das will fail if you are not prepared. So lets update or TZ Note: This only for works for NON uclibc installs! download the alpine... Read More
-
Generating kustomize overlays from helm charts
Today we are converting a helm chart to an actual kustomize deployment. using Kustomize built-in plugin Since Kustomize v4.1.0 you can simply render helm charts by using the integration provided by kustomize. So Kustomize can be use Helm charts for resource generation, right out of the box: So let’s do that. In this example I am working with ... Read More