Skip to content

Commit 080725c

Browse files
authored
fix(gke): delete unused region tags and start migrating service region tag (#13112)
1 parent b7ee73f commit 080725c

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

kubernetes_engine/django_tutorial/polls.yaml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ spec:
4848
# off in production.
4949
imagePullPolicy: Always
5050
env:
51-
# [START gke_cloudsql_secrets_python]
5251
- name: DATABASE_NAME
5352
valueFrom:
5453
secretKeyRef:
@@ -64,11 +63,9 @@ spec:
6463
secretKeyRef:
6564
name: cloudsql
6665
key: password
67-
# [END gke_cloudsql_secrets_python]
6866
ports:
6967
- containerPort: 8080
7068

71-
# [START gke_proxy_container_python]
7269
- image: gcr.io/cloudsql-docker/gce-proxy:1.16
7370
name: cloudsql-proxy
7471
command: ["/cloud_sql_proxy", "--dir=/cloudsql",
@@ -82,8 +79,6 @@ spec:
8279
mountPath: /etc/ssl/certs
8380
- name: cloudsql
8481
mountPath: /cloudsql
85-
# [END gke_proxy_container_python]
86-
# [START gke_volumes_python]
8782
volumes:
8883
- name: cloudsql-oauth-credentials
8984
secret:
@@ -93,10 +88,10 @@ spec:
9388
path: /etc/ssl/certs
9489
- name: cloudsql
9590
emptyDir: {}
96-
# [END gke_volumes_python]
9791
# [END gke_kubernetes_deployment_yaml_python]
9892
---
9993

94+
# [START gke_kubernetes_service_yaml_python]
10095
# [START gke_container_poll_service_python]
10196
# The polls service provides a load-balancing proxy over the polls app
10297
# pods. By specifying the type as a 'LoadBalancer', Kubernetes Engine will
@@ -118,4 +113,5 @@ spec:
118113
targetPort: 8080
119114
selector:
120115
app: polls
121-
# [END gke_container_poll_service_python]
116+
# [END gke_container_poll_service_python]
117+
# [END gke_kubernetes_service_yaml_python]

0 commit comments

Comments
 (0)