You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.adoc
+48-48Lines changed: 48 additions & 48 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,26 +46,26 @@ Explore how to deploy microservices to Google Kubernetes Engine (GKE) on Google
46
46
You will learn how to deploy two microservices in Open Liberty containers to a {kube} cluster on
47
47
Google Kubernetes Engine (GKE).
48
48
49
-
Kubernetes is an open source container orchestrator that automates many tasks involved in
49
+
Kubernetes is an open source container orchestrator that automates many tasks that are involved in
50
50
deploying, managing, and scaling containerized applications. If you would like to learn
51
51
more about Kubernetes, check out the https://openliberty.io/guides/kubernetes-intro.html[Deploying microservices to Kubernetes^]
52
52
guide.
53
53
54
54
There are different cloud-based solutions for running your {kube} workloads.
55
-
A cloud-based infrastructure enables you to focus on developing your microservices
55
+
With a cloud-based infrastructure, you can focus on developing your microservices
56
56
without worrying about low-level infrastructure details for deployment. Using a cloud helps
57
-
you to easily scale and manage your microservices in a high-availability setup.
57
+
you easily scale and manage your microservices in a high-availability setup.
58
58
59
59
Google Cloud Platform offers a managed {kube} service called Google Kubernetes Engine (GKE). Using GKE simplifies the process of running Kubernetes on Google Cloud Platform without
60
60
needing to install or maintain your own Kubernetes control plane. It provides a hosted {kube}
61
61
cluster that you can deploy your microservices to. In this guide, you will use GKE with a Google
62
62
Container Registry (GCR). GCR is a private registry that is used to store
63
-
and distribute your container images. Note, since GKE is hosted on Google Cloud Platform, fees may be associated with running this guide. See the official
63
+
and distribute your container images. Because GKE is hosted on Google Cloud Platform, fees might be associated with running this guide. See the official
64
64
https://cloud.google.com/kubernetes-engine/pricing[GKE pricing^] documentation for more details.
65
65
66
66
The two microservices you will deploy are called `system` and `inventory`.
67
67
The `system` microservice returns the JVM system properties of the running container.
68
-
It also returns the name of the pod in the HTTP header, making replicas easy to distinguish from each other.
68
+
It also returns the name of the pod in the HTTP header, which makes replicas easy to distinguish from each other.
69
69
The `inventory` microservice adds the properties from the `system` microservice to the inventory.
70
70
This demonstrates how communication can be established between pods inside a cluster.
71
71
@@ -75,30 +75,30 @@ This demonstrates how communication can be established between pods inside a clu
75
75
76
76
== Additional prerequisites
77
77
78
-
Before you begin, the following additional tools need to be installed:
78
+
Before you begin, the following tools need to be installed:
79
79
80
-
* *Google Account:* To run this guide and use Google Cloud Platform, you will need a Google account. If you do not
80
+
* *Google account:* To run this guide and use Google Cloud Platform, you will need a Google account. If you do not
* *Google Cloud Platform Account:* Visit the https://console.cloud.google.com/[Google Cloud Platform console^] to link your
85
+
* *Google Cloud Platform account:* Visit the https://console.cloud.google.com/[Google Cloud Platform console^] to link your
86
86
Google account to Google Cloud Platform.
87
87
88
-
* *Google Cloud SDK - CLI:* You will need to use the `gcloud` command-line tool included in the https://cloud.google.com/sdk[Google Cloud SDK^].
88
+
* *Google Cloud SDK - CLI:* You will need to use the `gcloud` command-line tool that is included in the https://cloud.google.com/sdk[Google Cloud SDK^].
89
89
See the official
90
90
https://cloud.google.com/sdk/docs/quickstarts[Cloud SDK: Command Line Interface - Quickstart^]
91
91
documentation and complete the “Before you begin” section to set up the Google Cloud Platform CLI for your platform.
92
-
To verify that the `gcloud` is installed correctly, run the following command:
92
+
To verify that the `gcloud` tool is installed correctly, run the following command:
93
93
94
94
+
95
95
[role=command]
96
96
```
97
97
gcloud info
98
98
```
99
99
100
-
* *kubectl:* You need the Kubernetes command-line tool `kubectl` to interact with your Kubernetes cluster.
101
-
If you do not have `kubectl` installed already, use the Google Cloud Platform CLI to download and install `kubectl` with the following command:
100
+
* *kubectl:* You need the Kubernetes `kubectl` command-line tool to interact with your Kubernetes cluster.
101
+
If `kubectl` is not already installed, use the Google Cloud Platform CLI to download and install `kubectl` with the following command:
To create a Google Cloud Project, first initialize the Google Cloud SDK by performing the `gcloud` initial setup.
127
-
The `gcloud init` command launches an interactive setup that creates or modifies configuration for `gcloud`,
127
+
The `gcloud init` command starts an interactive setup that creates or modifies configuration for `gcloud`,
128
128
such as setting the user account and specifying the project to use:
129
129
130
130
[role=command]
@@ -133,12 +133,12 @@ gcloud init
133
133
```
134
134
135
135
Follow the prompt to log in with your Google Cloud Platform account.
136
-
This authorizes Google Cloud SDK to access Google Cloud Platform using your account credentials.
136
+
This authorizes Google Cloud SDK to access Google Cloud Platform with your account credentials.
137
137
138
138
If you have existing projects, do not use them. Instead, create a new project for this guide. If you don't have existing projects, you will be automatically prompted to create a new one.
139
139
140
140
You will need to specify a Project ID for your project.
141
-
Enter a Project ID that is unique within Google Cloud and matches the pattern described in the prompt.
141
+
Enter a Project ID that is unique within Google Cloud and matches the pattern that is described in the prompt.
142
142
143
143
144
144
If the Project ID is available to use, you will see the following output:
@@ -150,9 +150,9 @@ Your current project has been set to: [project-id].
150
150
Your Google Cloud SDK is configured and ready to use!
151
151
----
152
152
153
-
Make sure that billing is enabled for your project, so that you can use its Google Cloud services.
153
+
Make sure that billing is enabled for your project so that you can use its Google Cloud services.
154
154
Follow the https://cloud.google.com/billing/docs/how-to/modify-project#confirm_billing_is_enabled_on_a_project[Modify a Project's Billing Settings^]
155
-
documentation to enable billing for your Google cloud project.
155
+
documentation to enable billing for your Google Cloud project.
156
156
157
157
=== Enabling Google Cloud APIs for your project
158
158
@@ -168,15 +168,15 @@ Your private container registry manages and stores the container images that you
168
168
To deploy your application to Google Kubernetes Engine (GKE), you will need to enable the `Kubernetes Engine API`.
169
169
The container images that you build will run on a Google Kubernetes Engine cluster.
170
170
171
-
Enable the necessary Google Cloud APIs for your project using the `gcloud services enable` command.
171
+
Enable the necessary Google Cloud APIs for your project by using the `gcloud services enable` command.
172
172
To see a list of Google Cloud APIs and services that are available for your project, run the following command:
173
173
174
174
[role=command]
175
175
```
176
176
gcloud services list --available
177
177
```
178
178
179
-
You will see an output similar to the following:
179
+
You will see an output similar to the following example:
180
180
181
181
[role="no_copy"]
182
182
----
@@ -194,7 +194,7 @@ containerregistry.googleapis.com Container Registry API
194
194
195
195
The `NAME` field is the value that you need to pass into the `gcloud services enable` command to enable an API.
196
196
197
-
Run the following command to enable the `Compute Engine API`, `Cloud Build API`, and the `Kubernetes Engine API`:
197
+
Run the following command to enable the `Compute Engine API`, `Cloud Build API`, and `Kubernetes Engine API`:
0 commit comments