It spins up one or more master nodes and multiple configured worker nodes. Note: It takes several minutes to create a cluster as Kubernetes Engine provisions virtual machines for you. The scopes argument provides access to project hosting and Google Cloud Storage APIs that you'll use later. Gcloud container clusters create bootcamp -num-nodes 5 -scopes "" In Cloud Shell, run the following command to start a Kubernetes cluster called bootcamp that runs 5 nodes: Gcloud config set compute/zone us-central1-a This way you do not need to specify -zone parameter in gcloud commands: A quick demo of Kubernetes Start a Kubernetes clusterĭefine your zone as a project default zone. Now that you have the code, it's time to try Kubernetes. Get the sample code from the Git repository:Ĭd orchestrate-with-kubernetes/kubernetes You can list the project ID with this command:įull documentation of gcloud is available in the
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |