Add Kubernetes manifests

This commit is contained in:
Marian Steinbach 2020-08-03 21:43:19 +02:00
parent 11866d0298
commit 5c012d19f1
3 changed files with 54 additions and 0 deletions

View File

@ -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"

View File

@ -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

View File

@ -0,0 +1,12 @@
apiVersion: v1
kind: Service
metadata:
name: schaufenster
namespace: marian
spec:
selector:
app: schaufenster
ports:
- protocol: TCP
port: 5000
targetPort: 5000