CKAD study environment

Shi
CI/CD/DevOps
Published in
1 min readJun 26, 2023

minikube, kind, k9s, k3d, AKS, EKS, kops

I have been using k8s for few years and currently study to prepare for CKAD certification.

Here is some notes I captured for the various k8s tools that I have tried or trying.

minikube/kind

Minikube is a tool to simulate a single node cluster using virtual machine.
KIND is a tool to simulate a single node cluster using docker container.

k3d

a very lightweight tool to simulate a multi-node cluster using docker containers

k9s

a tool to help to navigate and visualize a k8s resources

AKS/EKS

AKS Azure Kubernetes cluster
EKS Elastic Kubernetes Cluster (AWS)

My current experiment environment is in a free Github codespace,

# install k3d and create a k3d cluster
curl -s https://raw.githubusercontent.com/k3d-io/k3d/main/install.sh | bash
k3d cluster create tkb --servers 1 --agents 3 --image rancher/k3s:latest

# install k9s
wget https://github.com/derailed/k9s/releases/download/v0.27.4/k9s_Linux_amd64.tar.gz
tar xvf k9s_Linux_amd64.tar.gz

# autocompletion for kubectl and alias k
echo 'source <(kubectl completion bash)' >>~/.bashrc
echo 'alias k=kubectl' >>~/.bashrc
echo 'complete -o default -F __start_kubectl k' >>~/.bashrc

# install RG
RIPGREP_VERSION=$(curl -s "https://api.github.com/repos/BurntSushi/ripgrep/releases/latest" | grep -Po '"tag_name": "\K[0-9.]+')
curl -Lo ripgrep.deb "https://github.com/BurntSushi/ripgrep/releases/latest/download/ripgrep_${RIPGREP_VERSION}_amd64.deb"
sudo apt install -y ./ripgrep.deb
rg --version

# install YQ
sudo add-apt-repository ppa:rmescandon/yq
sudo apt update
sudo apt install yq -y

# install kubeshark
sh <(curl -Ls https://kubeshark.co/install)
ks clean
sudo apt install xdg-utils
kubeshark tap --proxy-host 0.0.0.0

# =========================================
alias reload='source ~/.bashrc'
alias h='history'
export PATH=/home/codespace/tools/k9s:$PATH

--

--

Shi
CI/CD/DevOps

I am a coder/engineer/application security specialist. I like to play around with language and tools; I have strong interest in efficiency improvement.