Curl and http 1.1 keepalive test traffic
Curl is really helpful for debugging when after recognizing a problem you need to decide wether it is a network issue, a DNS problem, an app server problem or an application performance problem. To try...
View ArticleFilter aws ec2 json with jq
The AWS CLI is fine, but dumping stuff becomes a pain the more stuff is in your account and when you want to extract multiple things depending on each other. While you can run filter queries like aws...
View ArticlePrometheus and m3db in docker in 5min
Preconditions Docker installed and active Quick Setup Download stuff docker pull quay.io/m3/m3dbnode:latest wget...
View ArticleNagios check plugin for nofile limit
Following the recent post on how to investigate limit related issues which gave instructions what to check if you suspect a system limit to be hit I want to share this Nagios check to cover the open...
View ArticleLog detailed output in bats
When you unit test your bash scripts with bats and have tests like @test "my test" { result=$( analyze some stuff |\ sed 's/stuff/otherstuff/' |\ sort |\ lot of pipe magic... ) [[ $result =~ pattern ]]...
View ArticleHelm templates lists using range
When you write a Helm template and want to create a list using range use the following syntax --- spec: something: myList: {{- range .Values.myList }} {{ print "- " (. | quote) }} {{- end }} The thing...
View ArticleAnsi color in jenkins pipelines
In all cases ensure you have the ansi-color plugin installed In Declarative Pipelines You need to add an option for ansiColor() pipeline { options { ansiColor('xterm') } // pipeline goes here } In...
View ArticleWhy decoding aac with ffmpeg doesn’t work…
Update: The workaround for the problem doesn't work for ffmpeg versions more recent than 20.06.2011 as libfaad support was dropped in favour of the now stable native ffmpeg AAC encoder! If you still...
View ArticleSsh login without interaction
This is a short summary what you need to avoid any type of interaction when accessing a machine by SSH. Interaction Pitfalls: Known hosts entry is missing. Known hosts entry is incorrect. Public key...
View ArticleHelm Checking Keys
It is quite impressive how hard it is to check a map key in Go templates to do some simple if conditions in your Helm charts or other kubernetes templates. At least for Helm there is a nice solution....
View ArticleHelm causes ‘Could not get apiVersions from Kubernetes’
When using Helm > 2.14.3 you can suddenly end up withCould not get apiVersions from Kubernetes: unable to retrieve the complete list of server APIs errors when handling (installing, upgrading,...
View ArticleSsh login without interaction
This is a short summary what you need to avoid any type of interaction when accessing a machine by SSH. Interaction Pitfalls:Known hosts entry is missing.Known hosts entry is incorrect.Public key is...
View ArticleHelm Checking Keys
It is quite impressive how hard it is to check a map key in Go templates to do some simple if conditions in your Helm charts or other kubernetes templates.At least for Helm there is a nice solution....
View ArticleHelm causes ‘Could not get apiVersions from Kubernetes’
When using Helm > 2.14.3 you can suddenly end up withCould not get apiVersions from Kubernetes: unable to retrieve the complete list of server APIs errors when handling (installing, upgrading,...
View ArticleRedis list all keys
If checking a Redis database you can list all entries usingKEYS <pattern> where pattern is a Unix glob expression. Here are some examplesKEYS myprefix* # All keys starting with 'myprefix' KEYS...
View ArticleOld helm chart repos will disappear
The old github based Helm chart repository is going to be deprecated soon and charts might be vanishing depending how this goes.Quoting this Reddit comment:May 13, 2020 At 6 months – when helm v2 goes...
View ArticleHelm Best Practices
As a reminder to myself I have compiled this list of opinionated best practices (in no particalur order) to follow when using Helm seriously:GeneralDo not try to mix Helm2 and Helm3Do not use Helm3 yet...
View ArticleJenkins list all pod templates
When using the Jenkins kubernetes plugin you can list all active pod templates like thisimport jenkins.model.* import org.csanchez.jenkins.plugins.kubernetes.* if (Jenkins.instance.clouds) { cloud =...
View ArticleHow to use custom css with jekyll minima theme
When providing this blog with some custom CSS to better format code examples I had troubles applying several of the online suggestions on how to add custom CSS in a Jekyll setup with Minima theme...
View ArticleHow to get docker buildkit to show run command output
When you use Docker’s new BuildKit build engine either byDOCKER_BUILDKIT=1 docker build ... or in most recent Docker v19 using the new buildx commanddocker buildx build ... then you won’t see any...
View Article