installation.adoc 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. = Installation
  2. [abstract]
  3. Explore the options for installing neo4j-helm, and how to configure advanced scenarios
  4. This is a helm chart, and it is installed by running https://helm.sh/docs/helm/helm_install/[helm install] with various parameters used to customize the deploy.
  5. The default for this chart is to install https://neo4j.com/docs/operations-manual/current/clustering/[Neo4j Causal Cluster]*, with 3 core members and zero replicas, but standalone is also supported.
  6. == Causal Cluster Example
  7. ```shell
  8. helm install my-neo4j \
  9. --set core.numberOfServers=3,readReplica.numberOfServers=3,acceptLicenseAgreement=yes,neo4jPassword=mySecretPassword .
  10. ```
  11. The above command creates a cluster containing 3 core servers and 3 read replicas.
  12. Alternatively, a YAML file that specifies the values for the parameters can be provided while installing the chart. For example,
  13. ```shell
  14. helm install neo4j-helm -f values.yaml .
  15. ```
  16. [NOTE]
  17. *Tip*: You can copy the default https://github.com/neo4j-contrib/neo4j-helm/blob/master/values.yaml[values.yaml] file as an example to edit, with full access to all options.
  18. == Standalone (Single Machine) Command Line Example
  19. [NOTE]
  20. ====
  21. **For Neo4j standalone (i.e . excluding Neo4j Causal Cluster) productized Helm charts for are available for Neo4j 4.3 and above.**
  22. That is the recommended way to run a standalone Neo4j server in Kubernetes. Full details are in the https://neo4j.com/docs/operations-manual/current/kubernetes/[Kubernetes section of the Neo4j operations manual]
  23. ====
  24. ```shell
  25. helm install my-neo4j --set core.standalone=true,acceptLicenseAgreement=yes,neo4jPassword=mySecretPassword .
  26. ```
  27. Important notes about standalone mode:
  28. * When running in standalone mode, core.numberOfServers is ignored and you will get 1 server.
  29. * Read replicas may only be used with causal cluster. When running standalone, all read replica arguments are ignored.
  30. * All other core settings (persistent volume size, annotations, etc) will still apply to your single instance.
  31. * Standalone instances installed in this way cannot be scaled into clusters.
  32. If you attempt to scale a standalone system, you will get multiple independent DBMSes, you will not get 1 causal cluster.
  33. == Deployment Scenarios
  34. See the https://github.com/neo4j-contrib/neo4j-helm/blob/master/deployment-scenarios[deployment-scenarios folder] in the repo for example YAML values files. These are example configurations that show settings necessary to launch the helm chart in different configurations.
  35. Each of these scenario files is launched the same way:
  36. ```shell
  37. helm install mygraph -f deployment-scenarios/my-scenario.yaml .
  38. ```