Internal Tikal workshop on kubectl
kubectl https://kubernetes.io/docs/tasks/tools/install-kubectl/
kubectx and kubens https://github.com/ahmetb/kubectx
stern (optional) for tailing logs https://github.com/wercker/stern
brew install kind
./kind-cluster-with-local-registry.sh
kubectl create namespace practical-k8s
kubens practical-k8sThe original sh script can be found here
This will create a Kind k8s node in docker and a local registry running on port 5000.
curl -L -O https://github.com/k3s-io/k3s/releases/download/v1.20.2%2Bk3s1/k3s
sudo k3s server --write-kubeconfig-mode 644This one will build the images for the local repository.
make docker-otherThis one will build for the local docker with an arbitrary tag (to prevent registry pulling)
make dockerBefore you apply the yaml files with kubectl apply, you need to make sure that you're using the right image.
image: localhost:5000/ping:latest
image: localhost:5000/pong:latestimage: ping:1
image: pong:1