Kubernetes Technology Leveraged

Last updated: February 23, 2019   

Over the past year, I’ve leveraged quite a bevy of Kubernetes-related technologies, and provided quick links and descriptions below. These are more for my own use than anyone, however maybe they will help other DevOps Engineers find resources to help them learn this amazing new technology.

Kubespray

[https://github.com/kubernetes-sigs/kubespray]

Kubespray configures and privisions Kubernetes nodes in a master/worker array, using Ansible.

MetalLB

[https://metallb.universe.tf/]

Bare metal LoadBalancer service, used in the homelab 4-node RPi (ARM) cluster.

kubectx / kubens

[https://github.com/ahmetb/kubectx]

Easily switch between contexts (kubectx) and namespaces (kubens) when using kubectl.

kube-ps1

[https://github.com/jonmosco/kube-ps1]

One of the best bash PS1s (user prompts) that I’ve seen yet, displaying the context and namespace, right there in front of you in a nice easy-to-read format. I combined this with git-prompt, so that I can quickly see the Kubernetes context/namespace along with the current git branch:

PS1 bash prompt with git-prompt and kube-ps1

source ~/bin/.git-prompt.sh
source ~/bin/.kube-ps1.sh
PS1='\[\033[32m\]\u \[\033[00m\]$(kube_ps1)$(__git_ps1)\[\033[00m\] \[\033[34m\]\w\[\033[31m\] \[\033[00m\]\$ '