From 95dd653dac7ba1e3474bba8aae12ac396a48e43f Mon Sep 17 00:00:00 2001 From: Tim Berry Date: Tue, 27 Aug 2019 17:10:14 +0100 Subject: [PATCH] Add Chapter 4 Lecture 6 files --- .../Lecture_6_Lab/manifests/deployment.yaml | 21 +++++++++++++++++++ .../Lecture_6_Lab/manifests/ingress.yaml | 12 +++++++++++ .../Lecture_6_Lab/manifests/service.yaml | 15 +++++++++++++ 3 files changed, 48 insertions(+) create mode 100644 Chapter_Four/Lecture_6_Lab/manifests/deployment.yaml create mode 100644 Chapter_Four/Lecture_6_Lab/manifests/ingress.yaml create mode 100644 Chapter_Four/Lecture_6_Lab/manifests/service.yaml diff --git a/Chapter_Four/Lecture_6_Lab/manifests/deployment.yaml b/Chapter_Four/Lecture_6_Lab/manifests/deployment.yaml new file mode 100644 index 0000000..62881f3 --- /dev/null +++ b/Chapter_Four/Lecture_6_Lab/manifests/deployment.yaml @@ -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 + diff --git a/Chapter_Four/Lecture_6_Lab/manifests/ingress.yaml b/Chapter_Four/Lecture_6_Lab/manifests/ingress.yaml new file mode 100644 index 0000000..5dcac93 --- /dev/null +++ b/Chapter_Four/Lecture_6_Lab/manifests/ingress.yaml @@ -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 + diff --git a/Chapter_Four/Lecture_6_Lab/manifests/service.yaml b/Chapter_Four/Lecture_6_Lab/manifests/service.yaml new file mode 100644 index 0000000..7dba9e7 --- /dev/null +++ b/Chapter_Four/Lecture_6_Lab/manifests/service.yaml @@ -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 +