Quantcast
Channel: Lzone Blog
Browsing all 31 articles
Browse latest View live

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 Article



Filter 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 Article

Prometheus and m3db in docker in 5min

Preconditions Docker installed and active Quick Setup Download stuff docker pull quay.io/m3/m3dbnode:latest wget...

View Article

Nagios 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 Article

Log 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 Article


Helm 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 Article

Ansi 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 Article

Why 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 Article


Ssh 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 Article


Helm 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 Article

Helm 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 Article

Ssh 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 Article

Helm 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 Article


Helm 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 Article

Redis 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 Article


Old 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 Article

Helm 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 Article


Jenkins 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 Article

How 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 Article

How 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
Browsing all 31 articles
Browse latest View live


Latest Images