Skip to content

Commit

Permalink
Add Chapter 4 Lecture 6 files
Browse files Browse the repository at this point in the history
  • Loading branch information
timhberry committed Aug 27, 2019
1 parent 68d7ef9 commit 95dd653
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 0 deletions.
21 changes: 21 additions & 0 deletions Chapter_Four/Lecture_6_Lab/manifests/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: zoneprinter
labels:
app: zoneprinter
spec:
selector:
matchLabels:
app: zoneprinter
template:
metadata:
labels:
app: zoneprinter
spec:
containers:
- name: frontend
image: gcr.io/google-samples/zone-printer:0.1
ports:
- containerPort: 80

12 changes: 12 additions & 0 deletions Chapter_Four/Lecture_6_Lab/manifests/ingress.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: zoneprinter
annotations:
kubernetes.io/ingress.class: gce-multi-cluster
kubernetes.io/ingress.global-static-ip-name: kubemci-ip
spec:
backend:
serviceName: zoneprinter
servicePort: 80

15 changes: 15 additions & 0 deletions Chapter_Four/Lecture_6_Lab/manifests/service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: v1
kind: Service
metadata:
name: zoneprinter
labels:
app: zoneprinter
spec:
type: NodePort
selector:
app: zoneprinter
ports:
- name: http
port: 80
nodePort: 30061

0 comments on commit 95dd653

Please sign in to comment.