Skip to content

Commit

Permalink
Add Chapter 3 Lecture 9 files
Browse files Browse the repository at this point in the history
  • Loading branch information
timhberry committed Aug 1, 2019
1 parent be629b0 commit 1dcd182
Show file tree
Hide file tree
Showing 5 changed files with 109 additions and 0 deletions.
24 changes: 24 additions & 0 deletions Chapter_Three/Lecture_9_Lab/myapp-blue.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: myapp-blue
labels:
app: myapp
spec:
replicas: 3
selector:
matchLabels:
app: myapp
version: blue
template:
metadata:
labels:
app: myapp
version: blue
spec:
containers:
- name: myapp
image: gcr.io/tim-acloud-guru/myapp:v3
ports:
- containerPort: 8888

22 changes: 22 additions & 0 deletions Chapter_Three/Lecture_9_Lab/myapp-canary.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: myapp-canary
labels:
app: myapp
spec:
replicas: 1
selector:
matchLabels:
app: myapp
template:
metadata:
labels:
app: myapp
spec:
containers:
- name: myapp
image: gcr.io/tim-acloud-guru/myapp:v3
ports:
- containerPort: 8888

24 changes: 24 additions & 0 deletions Chapter_Three/Lecture_9_Lab/myapp-green.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: myapp-green
labels:
app: myapp
spec:
replicas: 3
selector:
matchLabels:
app: myapp
version: green
template:
metadata:
labels:
app: myapp
version: green
spec:
containers:
- name: myapp
image: gcr.io/tim-acloud-guru/myapp:v2
ports:
- containerPort: 8888

22 changes: 22 additions & 0 deletions Chapter_Three/Lecture_9_Lab/myapp-prod.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: myapp-prod
labels:
app: myapp
spec:
replicas: 3
selector:
matchLabels:
app: myapp
template:
metadata:
labels:
app: myapp
spec:
containers:
- name: myapp
image: gcr.io/tim-acloud-guru/myapp:v1
ports:
- containerPort: 8888

17 changes: 17 additions & 0 deletions Chapter_Three/Lecture_9_Lab/template.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<!DOCTYPE html>
<html>
<head>
<title>{{ title }}</title>
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="0" />
</head>
<body bgcolor="{{ bgcolor }}">
<h1 style="color:white;font-family:Arial, Helvetica, sans-serif;text-align: center">
<strong>
{{ title }}
</strong>
</h1>
</body>
</html>

0 comments on commit 1dcd182

Please sign in to comment.