Skip to content

Add plugins using a plugins volume on kubernetes #542

@ozmoze

Description

@ozmoze
  • Neo4j version: 5.26.0

When trying to install graph data-science plugin in our neo4j kubernetes instance using neo4j-5.26.0 helm chart, we hit a bug where the symbolic link is not properly set for plugins folder.

  • plugin volume definition in helm chart
volumes:
  plugins:
    labels: {}
    disableSubPathExpr: false
    mode: "share"
    share:
      name: "data"
  • resulting volume in kubernetes neo4j pod

We can see that there is no symbolic link for plugins pointing to /plugins mounted directory.
Instead there is a empty plugins directory under neo4j home.

neo4j@neo4j-voyager-0:~$ ls -l
total 240
-rwxrwxrwx 1 neo4j neo4j  36008 Dec  5 12:07 LICENSE.txt
-rwxrwxrwx 1 neo4j neo4j 118877 Dec  5 12:07 LICENSES.txt
-rwxrwxrwx 1 neo4j neo4j  11647 Dec  5 12:07 NOTICE.txt
-rwxrwxrwx 1 neo4j neo4j   1432 Dec  5 12:07 README.txt
-rwxrwxrwx 1 neo4j neo4j     94 Dec  5 12:07 UPGRADE.txt
drwxr-xr-x 3 neo4j neo4j   4096 Dec 24 22:27 bin
drwxrwxrwx 2 neo4j neo4j   4096 Dec  5 12:07 certificates
drwxrwxrwx 1 neo4j neo4j   4096 Dec 27 14:04 conf
lrwxrwxrwx 1 root  root       5 Dec 24 22:27 data -> /data
drwxrwxrwx 2 neo4j neo4j   4096 Dec  5 12:07 import
drwxrwxrwx 2 neo4j neo4j   4096 Dec  6 10:04 labs
drwxrwxrwx 3 neo4j neo4j  20480 Dec  6 10:04 lib
drwxrwxrwx 2 neo4j neo4j   4096 Dec  5 12:07 licenses
lrwxrwxrwx 1 root  root       5 Dec 24 22:27 logs -> /logs
-rwxrwxrwx 1 neo4j neo4j     64 Dec 24 22:27 packaging_info
drwxrwxrwx 1 neo4j neo4j   4096 Dec 27 14:09 plugins
drwxrwxrwx 2 neo4j neo4j   4096 Dec  6 10:04 products
drwxrwxrwx 1 neo4j neo4j   4096 Dec 27 14:05 run
neo4j@neo4j-voyager-0:~$

Our GDS jar file is under /plugins

neo4j@neo4j-voyager-0:~$ ls -l /plugins/
total 62440
-rw-r--r-- 1 neo4j neo4j 63936757 Dec 27 13:57 neo4j-graph-data-science-2.13.2.jar
neo4j@neo4j-voyager-0:~$ 

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions