Primary focus of Developer is to write code. Build, Test and Deploy of the application are better left to be managed by tools. skaffold can help in automating some of mundane tasks that comes with using kubernetes. Skaffold facilitates fast local development with kubernetes as Developers go through iterative code and test cycle. As you code and save the file, skaffold detects changes initiates a pipeline to build, tag and deploy application to your local or remote kubernetes cluster. Install https://www.virtualbox.org/wiki/Downloads Virtual Box: https://kubernetes.io/docs/tasks/tools/install-minikube/ Minikube: https://skaffold.dev/docs/install/ Skaffold: Start minikube $ minikube start --driver=virtualbox Lets take a simple hello world example written in python and walk through the work flow. app.py flask Flask app = Flask( ) @app.route( ) def hello(): __name__ == : app.run(host = , port = ) from import 'hello' '/' return "Hello World!\n" if '__main__' '0.0.0.0' 8080 Dockerfile to create container image. FROM python: -slim RUN pip install flask WORKDIR /app COPY app.py /app/app.py ENTRYPOINT [ ] CMD [ ] 3.7 "python" "/app/app.py" kubernetes yaml to deploy pod for testing. pod.yaml apiVersion: v1 kind: Pod metadata: name: hello-app spec: containers: - name: hello-app image: hello-app In skaffold configuration yaml file we specify steps to build container image and use to deploy hello-app on minikube. pod.yaml skaffold.yaml apiVersion: skaffold/v2beta1 kind: Config metadata: name: hello-app build: artifacts: - image: hello-app deploy: kubectl: manifests: - pod.yaml skaffold dev command will watch an application’s source files, and when it detects changes, will rebuild your images, push any new images, and redeploy the application to your local cluster. $ skaffold dev Listing files to watch... - hello-app Generating tags... - hello-app -> hello-app: c-dirty Checking cache... - hello-app: Not found. Building Found [minikube] context, using local docker daemon. Building [hello-app]... ... Successfully built cae7e96d9aa6 Successfully tagged hello-app: c-dirty ... Starting deploy... - pod/hello-app created 302875 302875 skaffold runs the build and deploy steps. Check the pod deployed. $ kubectl get pod NAME READY STATUS RESTARTS AGE hello-app / Running s 1 1 0 36 Use port-forwarding to access the pod. $ kubectl port-forward pod/hello-app 8080 $ curl localhost: Hello World! 8080 Make any change, save file. skaffold dev automatically runs build and deploy. $ curl localhost: Hello New World! 8080 skaffold can help increasing Developer productivity by automating build, tag and deploy of application to local kubernetes cluster. Photo by on Christopher Gower Unsplash