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