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-k8s
The 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 644
This one will build the images for the local repository.
make docker-other
This one will build for the local docker with an arbitrary tag (to prevent registry pulling)
make docker
Before 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:latest
image: ping:1
image: pong:1