Add Kubernetes configuration

This commit is contained in:
Benjamin Waldher
2023-04-09 20:19:26 +00:00
parent beea3023db
commit 5489da4490
10 changed files with 403 additions and 0 deletions

32
kubernetes/ingress.yaml Normal file
View File

@ -0,0 +1,32 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: docspell-ingress
annotations:
nginx.ingress.kubernetes.io/rewrite-target: /$1
spec:
rules:
- host: docspell.example.com
http:
paths:
- path: /restserver(/|$)(.*)
pathType: Prefix
backend:
service:
name: docspell-restserver
port:
name: http
- path: /joex(/|$)(.*)
pathType: Prefix
backend:
service:
name: docspell-joex
port:
name: http
- path: /solr(/|$)(.*)
pathType: Prefix
backend:
service:
name: docspell-solr
port:
name: solr