Skip to content

Commit 6ac5624

Browse files
authored
chore(docs): update references of GCE to GKE (GoogleCloudPlatform#6670)
## Description Updates references to `Google Container Engine` and similar usage to `Google Kubernetes Engine`. Updated some link to Kubernetes docs as well. Fixes GoogleCloudPlatform#6590 ## Checklist - [x] I have followed [Sample Guidelines from AUTHORING_GUIDE.MD](https://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/AUTHORING_GUIDE.md) - [x] README is updated to include [all relevant information](https://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/AUTHORING_GUIDE.md#readme-file) - [x] **Tests** pass: `nox -s py-3.6` (see [Test Environment Setup](https://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/AUTHORING_GUIDE.md#test-environment-setup)) - [x] **Lint** pass: `nox -s lint` (see [Test Environment Setup](https://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/AUTHORING_GUIDE.md#test-environment-setup))
1 parent 513565d commit 6ac5624

File tree

9 files changed

+26
-26
lines changed

9 files changed

+26
-26
lines changed

auth/api-client/snippets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def explicit_compute_engine(project):
5858
import googleapiclient.discovery
5959

6060
# Explicitly use Compute Engine credentials. These credentials are
61-
# available on Compute Engine, App Engine Flexible, and Container Engine.
61+
# available on Compute Engine, App Engine Flexible, and Kubernetes Engine.
6262
credentials = compute_engine.Credentials()
6363

6464
# Explicitly pass the credentials to the client library.

auth/cloud-client/snippets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def explicit_compute_engine(project):
5353
from google.cloud import storage
5454

5555
# Explicitly use Compute Engine credentials. These credentials are
56-
# available on Compute Engine, App Engine Flexible, and Container Engine.
56+
# available on Compute Engine, App Engine Flexible, and Kubernetes Engine.
5757
credentials = compute_engine.Credentials()
5858

5959
# Create the client using the credentials and specifying a project ID.

iap/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ These samples are used on the following documentation pages:
3030
install the `google-auth` and `requests` libraries into your application.
3131
2. Copy `make_iap_request.py` into the same folder as app.yaml .
3232

33-
### Google Compute Engine or Google Container Engine
33+
### Google Compute Engine or Google Kubernetes Engine
3434

3535
1. [Click here](https://console.cloud.google.com/flows/enableapi?apiid=iam.googleapis.com&showconfirmation=true) to visit Google Cloud Platform Console and enable the IAM API on your project.
3636
2. Create a VM with the IAM scope:
@@ -65,7 +65,7 @@ These samples are used on the following documentation pages:
6565

6666
If you prefer to manage service account credentials manually, this method can
6767
also be used in the App Engine flexible environment, Compute Engine, and
68-
Container Engine. Note that this may be less secure, as anyone who obtains the
68+
Kubernetes Engine. Note that this may be less secure, as anyone who obtains the
6969
service account private key can impersonate that account!
7070

7171
## Using validate_jwt

iap/validate_jwt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
1717
This code should be used by applications in Google Compute Engine-based
1818
environments (such as Google App Engine flexible environment, Google
19-
Compute Engine, Google Container Engine, Google App Engine) to provide
19+
Compute Engine, Google Kubernetes Engine, Google App Engine) to provide
2020
an extra layer of assurance that a request was authorized by IAP.
2121
"""
2222
# [START iap_validate_jwt]

kubernetes_engine/api-client/README.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
.. This file is automatically generated. Do not edit this file directly.
22
3-
Google Container Engine Python Samples
3+
Google Kubernetes Engine Python Samples
44
===============================================================================
55

66
.. image:: https://gstatic.com/cloudssh/images/open-btn.png
7-
:target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=container_engine/api-client/README.rst
7+
:target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=kubernetes_engine/api-client/README.rst
88

99

10-
This directory contains samples for Google Container Engine. `Google Container Engine`_ runs Docker containers on Google Cloud Platform, powered by Kubernetes.
10+
This directory contains samples for Google Kubernetes Engine. `Google Kubernetes Engine`_ runs Docker containers on Google Cloud Platform, powered by Kubernetes.
1111

1212

1313

1414

15-
.. _Google Container Engine: https://cloud.google.com/container-engine/docs/
15+
.. _Google Kubernetes Engine: https://cloud.google.com/kubernetes-engine/docs/
1616

1717
Setup
1818
-------------------------------------------------------------------------------
@@ -65,7 +65,7 @@ Snippets
6565
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
6666

6767
.. image:: https://gstatic.com/cloudssh/images/open-btn.png
68-
:target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=container_engine/api-client/snippets.py,container_engine/api-client/README.rst
68+
:target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=kubernetes_engine/api-client/snippets.py,kubernetes_engine/api-client/README.rst
6969

7070

7171

@@ -90,4 +90,4 @@ To run this sample:
9090
9191
9292
93-
.. _Google Cloud SDK: https://cloud.google.com/sdk/
93+
.. _Google Cloud SDK: https://cloud.google.com/sdk/
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# This file is used to generate README.rst
22

33
product:
4-
name: Google Container Engine
5-
short_name: Container Engine
6-
url: https://cloud.google.com/container-engine/docs/
4+
name: Google Kubernetes Engine
5+
short_name: Kubernetes Engine
6+
url: https://cloud.google.com/kubernetes-engine/docs/
77
description: >
8-
`Google Container Engine`_ runs Docker containers on Google Cloud Platform,
8+
`Google Kubernetes Engine`_ runs Docker containers on Google Cloud Platform,
99
powered by Kubernetes.
1010

1111
setup:
@@ -17,4 +17,4 @@ samples:
1717
file: snippets.py
1818
show_help: true
1919

20-
folder: container_engine/api-client
20+
folder: kubernetes_engine/api-client

kubernetes_engine/django_tutorial/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
# Getting started with Django on Google Container Engine
1+
# Getting started with Django on Google Kubernetes Engine
22

33
[![Open in Cloud Shell][shell_img]][shell_link]
44

55
[shell_img]: http://gstatic.com/cloudssh/images/open-btn.png
66
[shell_link]: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=kubernetes_engine/django_tutorial/README.md
77

88
This repository is an example of how to run a [Django](https://www.djangoproject.com/)
9-
app on Google Container Engine. It uses the
9+
app on Google Kubernetes Engine. It uses the
1010
[Writing your first Django app](https://docs.djangoproject.com/en/1.11/intro/tutorial01/)
1111
Polls application (parts 1 and 2) as the example app to deploy. From here on
1212
out, we refer to this app as the 'polls' application.
1313

1414

1515
# Tutorial
16-
See our [Django on Container Engine](https://cloud.google.com/python/django/kubernetes-engine) tutorial for instructions for setting up and deploying this sample application.
16+
See our [Django on Kubernetes Engine](https://cloud.google.com/python/django/kubernetes-engine) tutorial for instructions for setting up and deploying this sample application.
1717

1818

1919
## Contributing changes

kubernetes_engine/django_tutorial/polls.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
# The bookshelf frontend replication controller ensures that at least 3
1919
# instances of the bookshelf app are running on the cluster.
2020
# For more info about Pods see:
21-
# https://cloud.google.com/container-engine/docs/pods/
21+
# https://kubernetes.io/docs/concepts/workloads/pods/
2222
# For more info about Deployments:
2323
# https://kubernetes.io/docs/user-guide/deployments/
2424

@@ -100,12 +100,12 @@ spec:
100100

101101
# [START service]
102102
# The polls service provides a load-balancing proxy over the polls app
103-
# pods. By specifying the type as a 'LoadBalancer', Container Engine will
103+
# pods. By specifying the type as a 'LoadBalancer', Kubernetes Engine will
104104
# create an external HTTP load balancer.
105105
# For more information about Services see:
106-
# https://cloud.google.com/container-engine/docs/services/
106+
# https://kubernetes.io/docs/concepts/services-networking/service/
107107
# For more information about external HTTP load balancing see:
108-
# https://cloud.google.com/container-engine/docs/load-balancer
108+
# https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/
109109
apiVersion: v1
110110
kind: Service
111111
metadata:

scripts/resources/docs-links.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,9 +179,9 @@
179179
"/appengine/docs/python/mail/mailgun": [
180180
"appengine/mailgun/main.py"
181181
],
182-
"/python/django/container-engine": [
183-
"container_engine/django_tutorial/mysite/settings.py",
184-
"container_engine/django_tutorial/polls.yaml"
182+
"/python/django/kubernetes-engine": [
183+
"kubernetes_engine/django_tutorial/mysite/settings.py",
184+
"kubernetes_engine/django_tutorial/polls.yaml"
185185
],
186186
"/bigquery/exporting-data-from-bigquery": [
187187
"bigquery/api/export_data_to_cloud_storage.py"

0 commit comments

Comments
 (0)