kops rolling update pods unclean exit

kops rolling update pods unclean exit

As we were on-boarding more and more services to our kubernetes cluster, we were getting deep insights of how things work or don’t work. One of the thing we realized when doing rolling updates of our kubernetes cluster is that pods were not getting enough time for graceful termination, and of-course our users were not …

Read More Read More

helm charts identify last element of list in range

helm charts identify last element of list in range

If you are reading this then most likely you are struggling to identify last element of the list in helm templates. go on read on for answer: Helm template: — [{{- $root := . -}} {{- $lastIndex := sub (len $root.Values.config.hosts) 1}} {{- range $i, $host := $root.Values.config.hosts }} { “host” : {{ $host }}, …

Read More Read More

Building Docker image on Raspberry Pi 3 with Ubuntu 16.04

Building Docker image on Raspberry Pi 3 with Ubuntu 16.04

When trying to build docker images using my raspberry pi 3, running Ubuntu Core 16.04, I kept getting following error: error checking context: ‘can’t stat ‘/home/rajatjindal83/dockerfiles”. My Dockerfile was pretty simple, so it was confusing what could be wrong. FROM armhf/ubuntu RUN apt-get update && apt-get -qy install git nano curl wget build-essential I tried …

Read More Read More