Browse Source

Merge pull request #8 from netzbegruenung/kubernetes-manifests

Add Kubernetes manifests
master v0.1.0
Marian Steinbach 2 years ago committed by GitHub
parent
commit
c0860570cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 28
      service/kubernetes/deployment.yaml
  2. 14
      service/kubernetes/ingress.yaml
  3. 12
      service/kubernetes/service.yaml

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

14
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

12
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
Loading…
Cancel
Save