Merge pull request #2501 from TheAnachronism/master

Fix some Kubernetes Kustomize deployment issues
This commit is contained in:
eikek 2024-02-24 00:54:43 +01:00 committed by GitHub
commit b193ecc77a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 22 additions and 20 deletions

View File

@ -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
```
```

View File

@ -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

View File

@ -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

View File

@ -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