Skip to content

Prerequisites#

CPU architecture#

All the kubernetes components run on both AMD and ARM based CPU, but most network OS(es) are not supported on ARM based CPU(s). As a result use an AMD based CPU to run the exercises.

Operating system#

We tested on WSL for windows and Linux and darwin OS.

kubectl#

Install kubectl

Auto completions for kubectl (optional)#

source <(kubectl completion bash)
alias k=kubectl
complete -o default -F __start_kubectl k
source <(kubectl completion zsh)
alias k=kubectl
complete -F _start_kubectl k

kubenetctl#

kubenetctl is a single binary built for linux and Mac OS, distributed via ghreleases focussed to help run through the kubenet exercises (basically kubenetctl tries to avoid fat fingering when executing the exercises).

kubenetctl is a binary tool that executes kubenet tasks (exercises) through the OS shell. By default kubenetctl uses the bash shell. if you prefer a different shell, you can alter the shell using the --shell option. E.g. using zsh or other

To download & install the latest release the following automated installation script can be used.

bash -c "$(curl -sL https://github.com/kubenet-dev/kubenetctl/raw/main/install.sh)"

As a result, the latest kubenetctl version will be installed in the /usr/local/bin directory and the version information will be printed out.

To install a specific version of kubenetctl, provide the version with -v flag to the installation script:

bash -c "$(curl -sL https://github.com/kubenet-dev/kubenetctl/raw/main/install.sh)" -- -v 0.0.1

Linux users running distributions with support for deb/rpm packages can install gnmic using pre-built packages:

bash -c "$(curl -sL https://github.com/kubenet-dev/kubenetctl/raw/main/install.sh)" -- --use-pkg

Install Kubernetes#

we use kind for the exercises as it is a convenient tool to setup a kubernetes cluster

Install kind using kind