Kubernetes development environment to reduce development time

I am new to devops and kubernetes and am creating a local development environment. For a hassle-free deployment, I wanted the development environment to be as similar as possible to a deployment environment. So, for this I use minikube for a single node cluster, and this solves a lot of my problems, but right now, according to my information, the developer needs to do the following to see the changes:

  • write code locally,
  • create a container image and then push it into the container register
  • apply the configuration of the kubernets with the updated image of the container.

But the main problem with this approach is the high development time. Can you suggest a better approach with which I can see the changes in real time?

+4
source share
5 answers

The official Kubernetes blog lists several CI / CD development tools for building Kubernetes-based applications: https://kubernetes.io/blog/2018/05/01/developing-on-kubernetes/

However, as others have already mentioned, development cycles can become much slower with CI / CD development approaches. Therefore, my colleague and I launched CLI DevSpace. This allows you to create DevSpace inside Kubernetes, which allows you to have direct access to the terminal and real-time file synchronization. This means that you can use it with any IDE and even use hot reload tools like nodemon for nodejs.

CLI DevSpace GitHub: https://github.com/covexo/devspace

+2

, Docker/Kubernetes , - . , (, IDE ), , - . Docker Kubernetes , : - .

+1

Jenkins X DevPods - , // kubernetes, CI/CD, (maven, , kubectl, ..).

IDE , , .

Minikube, , ( ). , -, , . , , CI/CD .

, CI/CD Kubernetes DevPods, ,

0

I did not get involved in Kubernetesand for so long Docker, but as far as I know, I think this is the first step to find out if this is possible and how to upgrade your application.

Kubernetes is not a tool for creating a Docker image, but simply extracting a pre-created Docker image.

There are many useful courses in Udem, including this one. https://www.udemy.com/docker-and-kubernetes-the-complete-guide/

0
source

Source: https://habr.com/ru/post/1689773/


All Articles