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
* Update misspelling in kubernetes.md
OAuth2 was misspelled in two places in this documentation
* Name and package capitalization and formatting
---------
Co-authored-by: Debbie Matthews <[email protected]>
Replace `$GCP_PROJECT_ID` in the above command with the name of your Google Cloud project.
139
+
Replace `<GCP_PROJECT_ID>` in the above command with the name of your Google Cloud project.
140
140
141
141
</Important>
142
142
143
143
### Upload the Docker image to a container registry
144
144
145
145
The next step is to upload the Docker image to a container registry. In this example, we will use the [Google Container Registry (GCR)](https://cloud.google.com/container-registry). Start by enabling the Container Registry API. Sign in to Google Cloud and navigate to your project’s **Container Registry** and click **Enable**.
146
146
147
-
We can now build the Docker image from the previous step and push it to our project’s GCR. Be sure to replace `$GCP_PROJECT_ID` in the docker push command with the name of your project:
147
+
We can now build the Docker image from the previous step and push it to our project’s GCR. Be sure to replace `<GCP_PROJECT_ID>` in the docker push command with the name of your project:
@@ -165,11 +165,11 @@ As the image was uploaded to the container registry in the previous step, we can
165
165
166
166
Make sure your [Kubernetes client](https://kubernetes.io/docs/tasks/tools/#kubectl), `kubectl`, is installed and running on your machine.
167
167
168
-
### Configure a Google OAuth Client and oauth2-proxy
168
+
### Configure a Google OAuth Client and OAuth2-Proxy
169
169
170
-
For configuring the Google OAuth Client, please see [Google Auth Provider](https://oauth2-proxy.github.io/oauth2-proxy/docs/configuration/oauth_provider#google-auth-provider). Configure oauth2-proxy to use the desired [OAuth Provider Configuration](https://oauth2-proxy.github.io/oauth2-proxy/docs/configuration/oauth_provider) and update the oath2-proxy config in the config map.
170
+
For configuring the Google OAuth Client, please see [Google Auth Provider](https://oauth2-proxy.github.io/oauth2-proxy/docs/configuration/oauth_provider#google-auth-provider). Configure OAuth2-Proxy to use the desired [OAuth Provider Configuration](https://oauth2-proxy.github.io/oauth2-proxy/docs/configuration/oauth_provider) and update the OAuth2-Proxy config in the config map.
171
171
172
-
The below configuration contains a ouath2-proxy sidecar container which handles the authentication with Google. You can learn more from the [oauth2-proxy repository](https://github.com/oauth2-proxy/oauth2-proxy).
172
+
The below configuration contains an OAuth2-Proxy sidecar container which handles the authentication with Google. You can learn more from the [`oauth2-proxy` repository](https://github.com/oauth2-proxy/oauth2-proxy).
173
173
174
174
### Create a Kubernetes configuration file
175
175
@@ -227,7 +227,7 @@ spec:
227
227
- mountPath: "/etc/oauth2-proxy"
228
228
name: oauth2-config
229
229
- name: streamlit
230
-
image: gcr.io/GCP_PROJECT_ID/k8s-streamlit:test
230
+
image: gcr.io/<GCP_PROJECT_ID>/k8s-streamlit:test
231
231
imagePullPolicy: Always
232
232
ports:
233
233
- containerPort: 8501
@@ -273,7 +273,7 @@ spec:
273
273
274
274
<Important>
275
275
276
-
While the above configurations can be copied verbatim, you will have to configure the `oauth2-proxy` yourself and use the correct `GOOGLE_CLIENT_ID`, `GOOGLE_CLIENT_ID`, `GCP_PROJECT_ID`, and `REDIRECT_URL`.
276
+
While the above configurations can be copied verbatim, you will have to update the following placeholders: `<GOOGLE_CLIENT_ID>`, `<GOOGLE_CLIENT_SECRET>`, `<REDIRECT_URL>`, and `<GCP_PROJECT_ID>`.
0 commit comments