From 282ac9ea7203d07128ad39f249d7de2f11f5611d Mon Sep 17 00:00:00 2001 From: Tim Berry Date: Mon, 10 Jun 2019 16:27:56 +0100 Subject: [PATCH] Add simple deployment YAML --- Chapter_Two/simple/deployment.yaml | 21 +++++++++++++++++++++ Chapter_Two/simple/service.yaml | 14 ++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 Chapter_Two/simple/deployment.yaml create mode 100644 Chapter_Two/simple/service.yaml diff --git a/Chapter_Two/simple/deployment.yaml b/Chapter_Two/simple/deployment.yaml new file mode 100644 index 0000000..210de86 --- /dev/null +++ b/Chapter_Two/simple/deployment.yaml @@ -0,0 +1,21 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: kuard-deployment + labels: + app: kuard +spec: + replicas: 3 + selector: + matchLabels: + app: kuard + template: + metadata: + labels: + app: kuard + spec: + containers: + - name: kuard + image: gcr.io/kuar-demo/kuard-amd64:purple + ports: + - containerPort: 8080 diff --git a/Chapter_Two/simple/service.yaml b/Chapter_Two/simple/service.yaml new file mode 100644 index 0000000..0ca88a0 --- /dev/null +++ b/Chapter_Two/simple/service.yaml @@ -0,0 +1,14 @@ +apiVersion: v1 +kind: Service +metadata: + name: kuard-service + labels: + app: kuard +spec: + ports: + - port: 80 + protocol: TCP + targetPort: 8080 + selector: + app: kuard + type: LoadBalancer