Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 98b7cab

Browse filesBrowse files
authored
Update Kubernetes Deployment for django tutorial (GoogleCloudPlatform#4831)
* Update Kubernetes Deployment for django tutorial * restore
1 parent 6bdf295 commit 98b7cab
Copy full SHA for 98b7cab

File tree

Expand file treeCollapse file tree

1 file changed

+6
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+6
-3
lines changed

‎kubernetes_engine/django_tutorial/polls.yaml

Copy file name to clipboardExpand all lines: kubernetes_engine/django_tutorial/polls.yaml
+6-3Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2015 Google Inc.
1+
# Copyright 2020 Google Inc.
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.
@@ -23,14 +23,17 @@
2323
# https://kubernetes.io/docs/user-guide/deployments/
2424

2525
# [START kubernetes_deployment]
26-
apiVersion: extensions/v1beta1
26+
apiVersion: apps/v1
2727
kind: Deployment
2828
metadata:
2929
name: polls
3030
labels:
3131
app: polls
3232
spec:
3333
replicas: 3
34+
selector:
35+
matchLabels:
36+
app: polls
3437
template:
3538
metadata:
3639
labels:
@@ -84,7 +87,7 @@ spec:
8487
hostPath:
8588
path: /etc/ssl/certs
8689
- name: cloudsql
87-
emptyDir:
90+
emptyDir: {}
8891
# [END volumes]
8992
# [END kubernetes_deployment]
9093

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.