Local Development Environment for Kubernetes using Minikube

15

Kubernetes can be an ultimate local development environment particularly if you are wrangling with a large number of microservices. In this post, we will cover how you can create a local development workflow using Minikube and tools such as Make to iterate fast without the wait imposed by your continuous integration pipeline. With this workflow, you can code and test changes immediately.

Traditionally, you can test your code changes by rebuilding the Docker images (either locally or via your continuous integration pipeline), then pushing the image to a Docker registry after the successful build, and then redeploy to your Kubernetes cluster.

Overall development workflow

Here is our simplified development workflow,

  1. Make changes in your code on your local laptop
  2. Build local Docker images and deploy them to Minikube
  3. Test your code changes after deploying into Minikube
  4. If changes are good, commit them to version control repository
  5. Your version control system triggers continuous integration pipeline
  6. Continuous integration builds Docker images and push it your registry

Read more at Abhishek Tiwari