Persistency Issue: XWiki+Postgres+Tomcat on Kubernetes

Hey there,

I am currently trying to set up XWiki on our Kubernetes cluster, and I am struggling to keep the configuration and data persistent. Everything works fine (creating admin account, flavor and extension installation, adding pages etc.) until restarting the K8s containers. Then I am greeted by the initialization progress page followed by a blank XWiki.

I mount persistent volumes under /usr/local/xwiki, so data should be persistent (similarly for postgres under /var/lib/postgresql). Still, for some reason all configuration is lost after a restart. I probably need to mount another volume somewhere else - any idea where? Does the Tomcat need a persistent volume as well? The configuration, however, is similar to the example docker-compose file in the documentation.

Current setup:

  • XWiki Docker image: xwiki:15.5.3-postgres-tomcat
  • Postgres Docker image: postgres:16.0

Thanks a lot in advance!

For better help, you need to provide your yaml that you used for xwiki and for database.

Another alternative is to use XWiki Helm Chart.

By default, this chart will install with MySQL (From Bitnami).

To install a PostgreSQL instance, you need to turn off mysql --set mysql.enable=false and enable PostgreSQL with --set postgresql.enable=true

*PostgreSQL maybe require manual procedures to upgrade major versions.

Use custom image version, you can use set image.tag=15.5.3-postgres-tomcat