File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
kubernetes_engine/django_tutorial Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 1
- # Copyright 2015 Google Inc.
1
+ # Copyright 2020 Google Inc.
2
2
#
3
3
# Licensed under the Apache License, Version 2.0 (the "License");
4
4
# you may not use this file except in compliance with the License.
23
23
# https://kubernetes.io/docs/user-guide/deployments/
24
24
25
25
# [START kubernetes_deployment]
26
- apiVersion : extensions/v1beta1
26
+ apiVersion : apps/v1
27
27
kind : Deployment
28
28
metadata :
29
29
name : polls
30
30
labels :
31
31
app : polls
32
32
spec :
33
33
replicas : 3
34
+ selector :
35
+ matchLabels :
36
+ app : polls
34
37
template :
35
38
metadata :
36
39
labels :
84
87
hostPath :
85
88
path : /etc/ssl/certs
86
89
- name : cloudsql
87
- emptyDir :
90
+ emptyDir : {}
88
91
# [END volumes]
89
92
# [END kubernetes_deployment]
90
93
You can’t perform that action at this time.
0 commit comments