Learn Helm
上QQ阅读APP看书,第一时间看更新

Creating a Kubernetes environment

To create a Kubernetes environment in this chapter, we will use Minikube. We learned how to install Minikube in Chapter 2, Preparing a Kubernetes and Helm Environment.

Let's follow these steps to set up Kubernetes:

  1. Start your Kubernetes cluster by running the following command:

    $ minikube start

  2. After a short amount of time, you should see a line in the output that resembles the following:

    Done! kubectl is now configured to use 'minikube'

  3. Once the Minikube cluster is up and running, create a dedicated namespace for this chapter's exercise. Run the following command to create a namespace called chapter3:

    $ kubectl create namespace chapter3

Now that the cluster setup is complete, let's begin the process of installing the WordPress chart to your Kubernetes cluster.