bash

Markdown to PDF in MacOSX

Posted on

I tend to use markdown almost unconsciously when taking notes or expressing thoughts or ideas in a text editor. But on several occasions I’ve had the need to share what I’ve written with a non technical person and handing off markdown to them seems a bit so-so. So after a few of these incidences I […]

bash

Docker Machine Port Forwarding

Posted on

When using MacOSX and Docker you currently need Docker Machine. A problem that you’ll run into very soon is port forwarding. For example when starting tomcat: $ docker run -it –rm -p 8888:8080 tomcat:8.0 This expose tomcat on port 8888 on the host and maps it to port 8080 in the container. So you should […]

bash

Simple templating engine in Bash

Posted on

TL;DR: Checkout the template engine at github. When working with pods in Kubernetes I had the need to define environment variables for the pod from a file. This is currently not supported in the currently released version of Kubernetes (1.1). What I wanted to do was to have a template file, for example `pod-template.yaml`, that […]

devops

Tail logs from multiple pods simultaneously in Kubernetes

Posted on

I’ve recently started working quite extensively with Kubernetes on Google Container Engine. But one thing that bugged me was that I couldn’t get logs from multiple pods simultaneously using the Google Cloud SDK (`kubectl`). This is something that you often want to do, at least if you run multiple instances of a pod behind a […]