Last active
January 22, 2023 06:48
-
-
Save seeker815/ecc7f28b8ec9130d91770ceb6e0199b2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const neo4jNS = new k8s.core.v1.Namespace(`neo4j-${projectEnv}`, {metadata: { name: `neo4j-${projectEnv}` }}, { provider: clusterProvider }); | |
const core1 = new k8s.helm.v3.Chart("core-1", { | |
chart: "neo4j-cluster-core", | |
fetchOpts: { | |
repo: "https://helm.neo4j.com/neo4j", | |
}, | |
version: "4.4.15", | |
namespace: neo4jNS.metadata.name, | |
values: { | |
neo4j: { | |
name: `neo4j-cluster-${projectEnv}`, | |
acceptLicenseAgreement: "yes", | |
resources: { | |
requests: { | |
memory: "6Gi", | |
}, | |
limits: { | |
cpu: "2000m", | |
memory: "7Gi" | |
}, | |
}, | |
}, | |
volumes: { | |
data: { | |
mode: "dynamic", | |
dynamic: { | |
storageClassName: "standard-rwo", | |
} | |
}, | |
plugins: { | |
mode: "share", | |
share: { | |
name: "data" | |
} | |
} | |
}, | |
nodeSelector: { | |
["cloud.google.com/gke-nodepool"]: "primarynodes-f059c87", | |
}, | |
config: { | |
"dbms.directories.plugins": "/plugins", | |
"dbms.security.procedures.unrestricted": "apoc.*, eventme.*", | |
"dbms.memory.heap.initial_size": "4900m", | |
"dbms.memory.heap.max_size": "4900m", | |
"dbms.memory.pagecache.size": "5600m", | |
"dbms.directories.logs": "/logs", | |
"dbms.directories.licenses": "/licenses", | |
"dbms.directories.import": "/import", | |
"dbms.default_listen_address": "0.0.0.0", | |
}, | |
apoc_config: { | |
"apoc.trigger.enabled": "true", | |
"apoc.trigger.refresh": "60000", | |
} | |
}, | |
},{provider: clusterProvider, dependsOn: [primaryNodePool, neo4jNS]}); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment