From eb3eedbab2107aad1afc1551d7f124274b5e80dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wolfgang=20Hu=C3=9F?= Date: Tue, 8 Dec 2020 13:28:41 +0100 Subject: [PATCH] Add to 'Apply The Configuration' --- deployment/ocelot-social/README.md | 5 ++++- deployment/ocelot-social/deployment-neo4j.yaml | 10 ++++++---- deployment/volumes/neo4j-data.yaml | 2 +- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/deployment/ocelot-social/README.md b/deployment/ocelot-social/README.md index e0f38f74c..a7d7a13c2 100644 --- a/deployment/ocelot-social/README.md +++ b/deployment/ocelot-social/README.md @@ -54,7 +54,10 @@ easily recovered. Therefore we separated persistent volumes from deployments and services. There is a [dedicated section](../volumes/README.md). Create those persistent volumes once before you apply the configuration. -## Apply the Configuration +## Apply The Configuration + +Before you apply you should think about the size of the droplet(s) you need. +For example, the requirements for Neo4j v3.5.14 are [here](https://neo4j.com/docs/operations-manual/3.5/installation/requirements/). ```bash # in folder deployment/ diff --git a/deployment/ocelot-social/deployment-neo4j.yaml b/deployment/ocelot-social/deployment-neo4j.yaml index 548cedd7e..8ade7325b 100644 --- a/deployment/ocelot-social/deployment-neo4j.yaml +++ b/deployment/ocelot-social/deployment-neo4j.yaml @@ -31,19 +31,21 @@ spec: - envFrom: - configMapRef: name: configmap - image: ocelotsocialnetwork/develop-neo4j:latest - imagePullPolicy: Always + image: ocelotsocialnetwork/develop-neo4j:latest # for develop + # image: ocelotsocialnetwork/develop-neo4j:0.6.3 # for production or staging + imagePullPolicy: Always # for develop or staging + # imagePullPolicy: IfNotPresent # for production name: neo4j ports: - containerPort: 7687 protocol: TCP - containerPort: 7474 protocol: TCP - resources: + resources: # see requirements for Neo4j v3.5.14 https://neo4j.com/docs/operations-manual/3.5/installation/requirements/ limits: memory: 2G requests: - memory: 1G + memory: 2G terminationMessagePath: /dev/termination-log terminationMessagePolicy: File volumeMounts: diff --git a/deployment/volumes/neo4j-data.yaml b/deployment/volumes/neo4j-data.yaml index c6e9cf56f..1053d0105 100644 --- a/deployment/volumes/neo4j-data.yaml +++ b/deployment/volumes/neo4j-data.yaml @@ -9,4 +9,4 @@ - ReadWriteOnce resources: requests: - storage: "5Gi" + storage: "10Gi" # see requirements for Neo4j v3.5.14 https://neo4j.com/docs/operations-manual/3.5/installation/requirements/