mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-03-27 17:35:04 +00:00
Merge pull request #2501 from TheAnachronism/master
Fix some Kubernetes Kustomize deployment issues
This commit is contained in:
commit
b193ecc77a
@ -42,6 +42,10 @@ patches:
|
||||
- op: replace
|
||||
path: /data/DOCSPELL_SERVER_BACKEND_JDBC_PASSWORD
|
||||
value: ZGJwYXNzMg== # dbpass2
|
||||
- target:
|
||||
kind: Secret
|
||||
name: joex-secrets
|
||||
patch: |-
|
||||
- op: replace
|
||||
path: /data/DOCSPELL_JOEX_JDBC_PASSWORD
|
||||
value: ZGJwYXNzMg== # dbpass2
|
||||
@ -59,4 +63,4 @@ To deploy a basic installation using the Kubernetes manifests, you can use the f
|
||||
|
||||
``` shell
|
||||
kubectl apply -f https://raw.githubusercontent.com/eikek/docspell/master/kubernetes
|
||||
```
|
||||
```
|
||||
|
@ -2,31 +2,15 @@ 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(/|$)(.*)
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: docspell-restserver
|
||||
name: 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
|
||||
|
@ -35,6 +35,7 @@ spec:
|
||||
volumeMounts:
|
||||
- name: postgres-data
|
||||
mountPath: /var/lib/postgresql/data
|
||||
subPath: pgdata
|
||||
volumeClaimTemplates:
|
||||
- metadata:
|
||||
name: postgres-data
|
||||
@ -55,4 +56,4 @@ spec:
|
||||
- name: postgres
|
||||
port: 5432
|
||||
targetPort: postgres
|
||||
clusterIP: None
|
||||
clusterIP: None
|
||||
|
@ -15,6 +15,16 @@ spec:
|
||||
labels:
|
||||
app: solr
|
||||
spec:
|
||||
initContainers:
|
||||
- name: fix-permissions
|
||||
image: busybox
|
||||
command:
|
||||
- "sh"
|
||||
- "-c"
|
||||
- "chown -R 8983:8983 /var/solr"
|
||||
volumeMounts:
|
||||
- name: solr-data
|
||||
mountPath: /var/solr
|
||||
containers:
|
||||
- name: solr
|
||||
image: solr:9
|
||||
@ -24,6 +34,9 @@ spec:
|
||||
- docker-entrypoint.sh
|
||||
- solr-precreate
|
||||
- docspell
|
||||
env:
|
||||
- name: SOLR_OPTS
|
||||
value: "-Dsolr.modules=analysis-extras"
|
||||
livenessProbe: # Check for a 302 response
|
||||
httpGet:
|
||||
path: /solr/admin/info/system
|
||||
|
Loading…
x
Reference in New Issue
Block a user