How to create a local development environment for Kubernetes?

前端 未结 12 1673
谎友^
谎友^ 2020-12-22 18:59

Kubernetes seems to be all about deploying containers to a cloud of clusters. What it doesn\'t seem to touch is development and staging environments (or such).

Durin

12条回答
  •  悲哀的现实
    2020-12-22 19:13

    As specified before by Robert, minikube is the way to go.

    Here is a quick guide to get started with minikube. The general steps are:

    • Install minikube

    • Create minikube cluster (in a Virtual Machine which can be VirtualBox or Docker for Mac or HyperV in case of Windows)

    • Create Docker image of your application file (by using Dockerfile)

    • Run the image by creating a Deployment

    • Create a service which exposes your application so that you can access it.

提交回复
热议问题