-
kubectl v1.16.3
-
kind v0.6.0 go1.13.4 darwin/amd64 - kindest/node v1.16.3
-
kustomize 3.5.4 (required by skaffold)
- Create the cluster
cd kind
kind create cluster --config cluster-config-single-node.yaml --name k8s-basic-demo
cd ..
- create namespace for the demo
k create ns k8s-basic-demo
kn k8s-basic-demo
- deploy mysql
kubectl apply -f k8s/_manual/mysql-statefulset.yaml
- expose locally mysql
kubectl port-forward service/mysql 3306:3306
- Run skaffold once
skaffold run
- Check deployment status
k get all
- Delete the cluster
kind delete cluster --name k8s-basic-demo