File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed
kubernetes_engine/django_tutorial Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change 48
48
# off in production.
49
49
imagePullPolicy : Always
50
50
env :
51
- # [START gke_cloudsql_secrets_python]
52
51
- name : DATABASE_NAME
53
52
valueFrom :
54
53
secretKeyRef :
64
63
secretKeyRef :
65
64
name : cloudsql
66
65
key : password
67
- # [END gke_cloudsql_secrets_python]
68
66
ports :
69
67
- containerPort : 8080
70
68
71
- # [START gke_proxy_container_python]
72
69
- image : gcr.io/cloudsql-docker/gce-proxy:1.16
73
70
name : cloudsql-proxy
74
71
command : ["/cloud_sql_proxy", "--dir=/cloudsql",
82
79
mountPath : /etc/ssl/certs
83
80
- name : cloudsql
84
81
mountPath : /cloudsql
85
- # [END gke_proxy_container_python]
86
- # [START gke_volumes_python]
87
82
volumes :
88
83
- name : cloudsql-oauth-credentials
89
84
secret :
@@ -93,10 +88,10 @@ spec:
93
88
path : /etc/ssl/certs
94
89
- name : cloudsql
95
90
emptyDir : {}
96
- # [END gke_volumes_python]
97
91
# [END gke_kubernetes_deployment_yaml_python]
98
92
---
99
93
94
+ # [START gke_kubernetes_service_yaml_python]
100
95
# [START gke_container_poll_service_python]
101
96
# The polls service provides a load-balancing proxy over the polls app
102
97
# pods. By specifying the type as a 'LoadBalancer', Kubernetes Engine will
@@ -118,4 +113,5 @@ spec:
118
113
targetPort : 8080
119
114
selector :
120
115
app : polls
121
- # [END gke_container_poll_service_python]
116
+ # [END gke_container_poll_service_python]
117
+ # [END gke_kubernetes_service_yaml_python]
You can’t perform that action at this time.
0 commit comments