cancel
Showing results for 
Search instead for 
Did you mean: 

Adding custom Configmap with data to helm installation using variables.yaml

zkaster
Node

Hi dear experts.

I am trying to start neo4j in k8s using helm.

Idea: start neo4j usign standart chart with default vabiables file. Add to variables additional volumes (Configmaps) to copy some additional scripts and DB files (cypher)m which will be used by this scripts.

Problem: Got error *(in any variations):

neo4j-standalone/templates/_volumeTemplate.tpl:201:85: executing "neo4j.volumes.validation" at <.Values.volumes.data>: can't evaluate field data in type interface {}

My simple file variables when use Volumes or additionalVolumes with differnt directories not only /usr... :

neo4j:
  resources:
    cpu: "0.5"
    memory: "2Gi"
volumes:
  - data:
    mode: defaultStorageClass
    defaultStorageClass:
      requests:
        storage: 2Gi
  - name: nginx-conf
    configMap:
      name: configmap4
VolumeMounts:
  - mountPath: /usr/share/nginx/html/index.html
    name: nginx-conf
    subPath: index.html
config:
  dbms.connector.bolt.enabled: "true"
  dbms.ssl.policy.bolt.client_auth: "NONE"
  dbms.ssl.policy.https.client_auth: "NONE"
  dbms.security.procedures.unrestricted: "apoc.*"
  dbms.connector.https.advertised_address: "localhost:7473"
  dbms.connector.bolt.advertised_address: "localhost:7687"
  dbms.transaction.timeout: "59s"
  AUTH: "neo4j/LocalDev"
  cypher.default_language_version: "3.5"
  acceptLicenseAgreement: "yes"

Probably there is another variant to add this file to neo4j without changing chart (template files) ?

0 REPLIES 0
Nodes 2022
Nodes
NODES 2022, Neo4j Online Education Summit

On November 16 and 17 for 24 hours across all timezones, you’ll learn about best practices for beginners and experts alike.