Using kubectl patch in continuous deployment

How to deploy new Docker images to your Kubernetes cluster? Of course, there are many ways and one of the most common ways is to use kubectl set image, for example: 1 kubectl set image deployment/nginx-deployment nginx=nginx:1.17.5-alpine However, what happens if you have more containers in your deployment pod spec? And what if you also have initContainers? Fortunately, kubectl patch can help. Let’s assume we have two containers and one init container....

2019-10-23 · 2 min · Boban Acimovic

New kind on the Block

Few months ago I wrote an article about replacing Minikube with MicroK8s , but now we have even better soluion, kind . Like dind allows running Docker inside Docker containers, kind allows running Kubernetes inside Docker containers. kind basically abstracts nodes as Docker containers and then runs Kubernetes inside. After you install Golang , it is quite easy to install and setup kind: 1 2 GO111MODULE="on" go get sigs.k8s.io/kind@v0.5.1 kind create cluster After some 30 seconds your single node cluster will be ready for development and testing....

2019-10-03 · 1 min · Boban Acimovic

Inexpensive managed Kubernetes solutions

DigitalOcean just got competition from Scaleway with their managed Kubernetes service, Kapsule.

2019-09-26 · 2 min · Boban Acimovic

Run K8S like ninja

Running self managed Kubernetes cluster is not that difficult at the end.

2019-07-21 · 4 min · Boban Acimovic

Forget Minikube, try MicroK8s

MicroK8s is a lightweight version of Kubernetes for local development. It can run on Linux (natively) or Mac (in a light VM ).

2019-05-22 · 2 min · Boban Acimovic