Skip to content

Commit 5829629

Browse files
authored
chore(gke): migrate region step 1 - update regions adding gke_ prefix and _python suffix (#13011)
* chore(gke): migrate region step 1 - update regions adding gke_ preffix and _python suffix * chore(gke): migrate region step 1 - update regions adding gke_ preffix and _python suffix
1 parent 8063afb commit 5829629

File tree

1 file changed

+11
-13
lines changed

1 file changed

+11
-13
lines changed

kubernetes_engine/django_tutorial/polls.yaml

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@
2222
# For more info about Deployments:
2323
# https://kubernetes.io/docs/user-guide/deployments/
2424

25-
# [START gke_kubernetes_deployment]
26-
# [START kubernetes_deployment]
25+
# [START gke_kubernetes_deployment_python]
2726
apiVersion: apps/v1
2827
kind: Deployment
2928
metadata:
@@ -49,7 +48,7 @@ spec:
4948
# off in production.
5049
imagePullPolicy: Always
5150
env:
52-
# [START cloudsql_secrets]
51+
# [START gke_cloudsql_secrets_python]
5352
- name: DATABASE_NAME
5453
valueFrom:
5554
secretKeyRef:
@@ -65,11 +64,11 @@ spec:
6564
secretKeyRef:
6665
name: cloudsql
6766
key: password
68-
# [END cloudsql_secrets]
67+
# [END gke_cloudsql_secrets_python]
6968
ports:
7069
- containerPort: 8080
71-
72-
# [START proxy_container]
70+
71+
# [START gke_proxy_container_python]
7372
- image: gcr.io/cloudsql-docker/gce-proxy:1.16
7473
name: cloudsql-proxy
7574
command: ["/cloud_sql_proxy", "--dir=/cloudsql",
@@ -83,8 +82,8 @@ spec:
8382
mountPath: /etc/ssl/certs
8483
- name: cloudsql
8584
mountPath: /cloudsql
86-
# [END proxy_container]
87-
# [START volumes]
85+
# [END gke_proxy_container_python]
86+
# [START gke_volumes_python]
8887
volumes:
8988
- name: cloudsql-oauth-credentials
9089
secret:
@@ -94,13 +93,12 @@ spec:
9493
path: /etc/ssl/certs
9594
- name: cloudsql
9695
emptyDir: {}
97-
# [END volumes]
98-
# [END kubernetes_deployment]
99-
# [END gke_kubernetes_deployment]
96+
# [END gke_volumes_python]
97+
# [END gke_kubernetes_deployment_python]
10098

10199
---
102100

103-
# [START container_poll_service]
101+
# [START gke_container_poll_service_python]
104102
# The polls service provides a load-balancing proxy over the polls app
105103
# pods. By specifying the type as a 'LoadBalancer', Kubernetes Engine will
106104
# create an external HTTP load balancer.
@@ -121,4 +119,4 @@ spec:
121119
targetPort: 8080
122120
selector:
123121
app: polls
124-
# [END container_poll_service]
122+
# [END gke_container_poll_service_python]

0 commit comments

Comments
 (0)