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 +