demo.mp4
- Create simple hello world app.
- Create app deployment manifest:
mkdir k8s
kubectl create deployment ferris-k8s --image=andregs/ferris-k8s --dry-run=client -o yaml > k8s/deployment.yaml
- Add skaffold support via:
skaffold init -k ./k8s/*.yaml --skip-build
- Create a
Procfile
with the path of your release binary. - Add the whole build section to the generated yaml file, specifying how skaffold should build your app image.
- Build & deploy to k8s with skaffold:
minikube start
skaffold dev --port-forward
Skaffold will build your app, publish it to kubernetes, watch fs, live reload it whenever you change the code and cleanup after itself when you ^C it.