Now that our zone is set, we will create a new cluster of containers. We can do this using the gcloud config set command-run the following in your cloud shell to set your zone to us-central1-f: gcloud config set compute/zone us-central1-f Create a new Cluster Before we can create our Kubernetes cluster, we will need to set a compute zone so that the virtual machines in our cluster are all created in the same region. Throughout this lab, we will be using the gcloud command line tool to provision our services. In fact, by using a few open-source tools you will see how Kubernetes and stateless services can go hand-in-hand. However, after getting hands-on practice with this lab you will quickly see how that’s not the case. Running a stateful application (a database) on a stateless service (container) may sound contradictory. In this lab, you will get some practical experience with Kubernetes by learning how to set up a MongoDB database with a StatefulSet. You can run Kubernetes applications with Kubernetes Engine-a Google Cloud computing service that offers many different customizations and integrations. Kubernetes is an open source container orchestration tool that handles the complexities of running containerized applications.
0 Comments
Leave a Reply. |