Kubernetes Goat

Decided to play with this learning exercise using kind (kubernetes in docker)

Prereq (docker, helm2, kubectl, kind):

Install docker for your distro: https://docs.docker.com/engine/install/ubuntu/

wget https://get.helm.sh/helm-v2.17.0-linux-amd64.tar.gz
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.11.0/kind-linux-amd64
tar xf helm-v2.17.0-linux-amd64.tar.gz
sudo mv linux-amd64/helm /usr/local/bin/helm2
sudo mv linux-amd64/tiller /usr/local/bin/
sudo mv kubectl /usr/local/bin/
sudo mv kind /usr/local/bin/

sudo chmod +x /usr/local/bin/kind
sudo chmod +x /usr/local/bin/kubectl
sudo chmod +x /usr/local/bin/tiller
sudo chmod +x /usr/local/bin/helm2

Clone the git repo. If you are not part of the docker group, you need to use sudo before the bash command to import the kind image into docker

git clone https://github.com/madhuakula/kubernetes-goat
cd kubernetes-goat/kind-setup
bash setup-kind-cluster-and-goat.sh

Once setup is complete, run the acceess-kubernetes-goat.sh from the main git repo and follow along on the tutorial: https://madhuakula.com/kubernetes-goat/scenarios/scenario-1.html