Skip to content

Commit

Permalink
Merge pull request #8 from netzbegruenung/kubernetes-manifests
Browse files Browse the repository at this point in the history
Add Kubernetes manifests
  • Loading branch information
marians authored Aug 3, 2020
2 parents 11866d0 + 5c012d1 commit c086057
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 0 deletions.
28 changes: 28 additions & 0 deletions service/kubernetes/deployment.yaml
Original file line number Diff line number Diff line change
@@ -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"
14 changes: 14 additions & 0 deletions service/kubernetes/ingress.yaml
Original file line number Diff line number Diff line change
@@ -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
12 changes: 12 additions & 0 deletions service/kubernetes/service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: v1
kind: Service
metadata:
name: schaufenster
namespace: marian
spec:
selector:
app: schaufenster
ports:
- protocol: TCP
port: 5000
targetPort: 5000

0 comments on commit c086057

Please sign in to comment.