Commit 2079cf07 authored by Jens Langhammer's avatar Jens Langhammer

add k8s deployment

parent e0332f4b
Pipeline #3871 passed with stage
in 16 seconds
apiVersion: apps/v1beta2
kind: Deployment
metadata:
name: jela-io-web
namespace: prod-jela-io
labels:
app.kubernetes.io/name: jela.io
app.kubernetes.io/managed-by: jela.io
spec:
replicas: 2
selector:
matchLabels:
app.kubernetes.io/name: jela.io
template:
metadata:
labels:
app.kubernetes.io/name: jela.io
spec:
containers:
- name: jela-io
image: "docker.beryju.org/jens/jela.io:latest"
imagePullPolicy: Always
ports:
- name: http
containerPort: 80
protocol: TCP
livenessProbe:
initialDelaySeconds: 20
timeoutSeconds: 5
httpGet:
path: /
port: http
readinessProbe:
initialDelaySeconds: 20
timeoutSeconds: 5
httpGet:
path: /
port: http
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: jela-io-ingress
namespace: prod-jela-io
labels:
app.kubernetes.io/name: jela.io
app.kubernetes.io/managed-by: jela.io
annotations:
kubernetes.io/ingress.class: nginx
ingress.kubernetes.io/proxy-body-size: 5000m
nginx.ingress.kubernetes.io/proxy-body-size: 5000m
kubernetes.io/tls-acme: "true"
certmanager.k8s.io/cluster-issuer: letsencrypt-prod
spec:
tls:
- hosts:
- jela.io
secretName: jela-io-acme
rules:
- host: jela.io
http:
paths:
- path: /
backend:
serviceName: jela-io-http
servicePort: http
apiVersion: v1
kind: Service
metadata:
name: jela-io-http
namespace: prod-jela-io
labels:
app.kubernetes.io/name: jela.io
app.kubernetes.io/managed-by: jela.io
spec:
type: ClusterIP
ports:
- port: 80
targetPort: http
protocol: TCP
name: http
selector:
app.kubernetes.io/name: jela.io
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment