From 5c012d19f1d6547ab6359f9e6a3fdd05e658c0a6 Mon Sep 17 00:00:00 2001 From: Marian Steinbach Date: Mon, 3 Aug 2020 21:43:19 +0200 Subject: [PATCH] Add Kubernetes manifests --- service/kubernetes/deployment.yaml | 28 ++++++++++++++++++++++++++++ service/kubernetes/ingress.yaml | 14 ++++++++++++++ service/kubernetes/service.yaml | 12 ++++++++++++ 3 files changed, 54 insertions(+) create mode 100644 service/kubernetes/deployment.yaml create mode 100644 service/kubernetes/ingress.yaml create mode 100644 service/kubernetes/service.yaml diff --git a/service/kubernetes/deployment.yaml b/service/kubernetes/deployment.yaml new file mode 100644 index 0000000..0ecc6bc --- /dev/null +++ b/service/kubernetes/deployment.yaml @@ -0,0 +1,28 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + labels: + app: schaufenster + name: schaufenster + namespace: marian +spec: + replicas: 2 + selector: + matchLabels: + app: schaufenster + template: + metadata: + labels: + app: schaufenster + spec: + containers: + - image: quay.io/netzbegruenung/schaufenster-service:latest + name: schaufenster-service + imagePullPolicy: Always + resources: + requests: + cpu: "250m" + memory: "100Mi" + limits: + cpu: "1000m" + memory: "150Mi" diff --git a/service/kubernetes/ingress.yaml b/service/kubernetes/ingress.yaml new file mode 100644 index 0000000..43eb692 --- /dev/null +++ b/service/kubernetes/ingress.yaml @@ -0,0 +1,14 @@ +apiVersion: networking.k8s.io/v1beta1 +kind: Ingress +metadata: + name: schaufenster + namespace: marian +spec: + rules: + - host: ingress.5jka7.k8s.gollum.westeurope.azure.gigantic.io + http: + paths: + - path: / + backend: + serviceName: schaufenster + servicePort: 5000 diff --git a/service/kubernetes/service.yaml b/service/kubernetes/service.yaml new file mode 100644 index 0000000..ebbacd4 --- /dev/null +++ b/service/kubernetes/service.yaml @@ -0,0 +1,12 @@ +apiVersion: v1 +kind: Service +metadata: + name: schaufenster + namespace: marian +spec: + selector: + app: schaufenster + ports: + - protocol: TCP + port: 5000 + targetPort: 5000