- Kubectl - Required
- Minikube - Not required but suggested
- kubectx and kubens
- [gcloud] - Alternative for those not using minikube
- Linux: https://kubernetes.io/docs/tasks/tools/install-kubectl-linux/
- macOS:
brew cask install kubectl
- Windows: https://kubernetes.io/docs/tasks/tools/install-kubectl-windows/
It is recomended that you install the same version of the kubernetes that you are using.
https://minikube.sigs.k8s.io/docs/start/
Select the operating system, arquitecture and package manger that you want to use.
https://github.com/ahmetb/kubectx
This are tools that help you on your daily basis tasks when you have multiple clusters to manage.
https://cloud.google.com/sdk/docs/install
If you have MacOS and homebrew installed
brew install --cask google-cloud-sdk
For this workshop, you will need a cluster to try what you will create.
We will give two options, being the minikube the one recommended.
You will have access to this (because it's running on your computer) after this workshop finishes.
To start minikube with required addons for this workshop, use the following command
minikube start --addons=ingress,ingress-dns --driver=hyperkit
minikube start --addons=ingress,ingress-dns
If you don't want to use minikube, we have a cluster running on GCloud that you can use.
export GOOGLE_APPLICATION_CREDENTIALS=aettua-workshop-key.json
export KUBECONFIG=kubeconfig.yaml
gcloud container clusters get-credentials workshop-cluster --zone europe-southwest1
First let's create a namespace for you to work, instead of use the default.
kubectl create namespace <some_name_without_spaces>
If you have installed kubens
kubens <some_name_without_spaces>
otherwise don't forget to prepend or append your kubectl
commands with -n <some_name_without_spaces>
Let's play
git clone https://github.com/ydataai/kubernetes-workshop.git
git checkout phase-1
Check the readme https://github.com/ydataai/kubernetes-workshop/tree/phase-1 for the next instructions
git checkout phase-2
Check the readme https://github.com/ydataai/kubernetes-workshop/tree/phase-2 for the next instructions