-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsingle-node-standalone.yaml
More file actions
104 lines (88 loc) · 2.76 KB
/
single-node-standalone.yaml
File metadata and controls
104 lines (88 loc) · 2.76 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
# Single-node Neo4j Enterprise Standalone deployment
# This creates a standalone Neo4j deployment in single mode (not clustered)
# Suitable for development, testing, and simple production workloads that don't need scaling
#
# NEW: Now supports Neo4jDatabase resources! You can create databases in standalone
# deployments using the Neo4jDatabase custom resource with clusterRef pointing to this standalone.
apiVersion: neo4j.neo4j.com/v1alpha1
kind: Neo4jEnterpriseStandalone
metadata:
name: standalone-neo4j
namespace: default
spec:
# Neo4j Enterprise Edition (required for this operator)
# Neo4j Docker image configuration
image:
repo: neo4j
tag: "5.26.0-enterprise" # Neo4j 5.26+ required
pullPolicy: IfNotPresent
# Storage configuration
storage:
className: standard # Use your cluster's default storage class
size: "10Gi" # Adjust based on your data needs
# Persistence configuration
persistence:
enabled: true
retentionPolicy: Delete # Delete PVCs when standalone is deleted
accessModes:
- ReadWriteOnce
# Resource allocation
resources:
requests:
memory: "2Gi" # Initial memory allocation
cpu: "500m" # Initial CPU allocation
limits:
memory: "4Gi" # Maximum memory
cpu: "2" # Maximum CPU cores
# TLS disabled for simplicity (enable for production)
tls:
mode: disabled
# Authentication configuration
auth:
provider: native
adminSecret: neo4j-admin-secret # Reference to admin credentials secret
# Service configuration
service:
type: ClusterIP
annotations:
service.beta.kubernetes.io/aws-load-balancer-type: nlb # Example annotation
# Custom Neo4j configuration (single mode is automatically set)
config:
# Memory settings
server.memory.heap.initial_size: "1G"
server.memory.heap.max_size: "2G"
server.memory.pagecache.size: "1G"
# Security settings
dbms.security.auth_enabled: "true"
dbms.security.procedures.unrestricted: "gds.*,apoc.*"
# Logging settings
dbms.logs.query.enabled: "true"
dbms.logs.query.threshold: "1s"
# Environment variables (optional)
# Note: NEO4J_ACCEPT_LICENSE_AGREEMENT is managed by the operator
env: []
# Node selector for pod scheduling
nodeSelector:
kubernetes.io/arch: amd64
# Tolerations for pod scheduling
tolerations:
- key: "neo4j"
operator: "Equal"
value: "true"
effect: "NoSchedule"
# Monitoring
monitoring:
enabled: true
slowQueryThreshold: "5s"
explainPlan: true
---
# Admin credentials secret (create this before applying the standalone)
apiVersion: v1
kind: Secret
metadata:
name: neo4j-admin-secret
namespace: default
type: Opaque
stringData:
username: neo4j
password: your-secure-password-here