Skip to content

Commit

Permalink
Merge pull request #2501 from TheAnachronism/master
Browse files Browse the repository at this point in the history
Fix some Kubernetes Kustomize deployment issues
  • Loading branch information
eikek authored Feb 23, 2024
2 parents 0b51337 + 5f4fdb7 commit b193ecc
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 20 deletions.
6 changes: 5 additions & 1 deletion kubernetes/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
```
```
20 changes: 2 additions & 18 deletions kubernetes/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 2 additions & 1 deletion kubernetes/postgres.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ spec:
volumeMounts:
- name: postgres-data
mountPath: /var/lib/postgresql/data
subPath: pgdata
volumeClaimTemplates:
- metadata:
name: postgres-data
Expand All @@ -55,4 +56,4 @@ spec:
- name: postgres
port: 5432
targetPort: postgres
clusterIP: None
clusterIP: None
13 changes: 13 additions & 0 deletions kubernetes/solr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit b193ecc

Please sign in to comment.