-
Notifications
You must be signed in to change notification settings - Fork 127
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Kubernetes] Wrong PostgreSQL mount path and other Kubernetes manifest issues #2498
Comments
…ulset to make sure no conflicts happen on startup.
…ith the SOLR_OPTS environmnt variable.
…to properly set the JDBC connection for Joex.
Hi @TheAnachronism I need to say, that my k8s knowledge is very limited. Another user did this nice contribution in #2034 . I would always merge any changes made to the setup, unless other people intervene :) (ping @waldher) |
Hey there, |
@TheAnachronism Could you tell me what specifically the error related to permissions is? I haven't encountered it yet, and when I look at the container without your changes, the |
Yes, that's the case, solr cannot create the directories. I'm unsure, and I'll have to test this out, but I think with certain storage classes, mounting volumes can result in a |
I'm currently in the process of generally reworking my entire docspell setup, and decided to switch to a Kubernetes-based deployment. I was pleased to find that there were already
kustomize
ready manifests available, but I've found some issues with them.1. The volume mount for the
postgres
stateful set doesn't quite work.Due to how volume mounting works, it can happen that there is a
lost+found
directory created within the specified/var/lib/postgresql/data
path. This causes Postgres to fail on startup, due to the not-empty directory.To fix this, a simple
subPath
statement can be added:2. Wrong permissions for Apache Solr in
/var/solr
Sadly, the volume mounts causes solr to have issues with file permissions in the
/var/solr
directory. To make sure, that the file permissions are always correct, an initContainer should be added:3. Whatever the ingress is supposed to be?
I'm really unsure what the original intent of the
ingress.yaml
was for the Kubernetes deployment, but it doesn't work together with either the used service names, or the actual paths.A simple path to the
restserver
service on port7880
is already enough to make docspell available from outside.4. With the new languages added in v0.41.0, an additional module has to be added so that the index can properly be created.
Without the
-Dsolr.modules=analysis-extras
module, joex cannot create the proper full search index inside solr.This can be solved with the
SOLR_OPTS
environment variable, that can be passed to the container:The text was updated successfully, but these errors were encountered: