I deployed the Neo4j Docker image on Openshift.
This is my deployment:
spec:
volumes:
- name: neo4j-data
persistentVolumeClaim:
claimName: neo4j
containers:
- resources: {}
terminationMessagePath: /dev/termination-log
name: neo4j
env:
- name: NEO4J_AUTH
value: neo4j/12345678
- name: NEO4J_ACCEPT_LICENSE_AGREEMENT
value: 'yes'
- name: NEO4J_server_config_strict__validation_enabled
value: 'false'
- name: SERVICE.PORT.BOLT
value: '7687'
- name: dbms.connector.bolt.advertised_address
value: '0.0.0.0:7687'
- name: dbms.connector.bolt.listen_address
value: '0.0.0.0:7687'
- name: dbms.connector.bolt.enabled
value: 'true'
- name: dbms.connector.bolt.tls_level
value: OPTIONAL
ports:
- containerPort: 7474
protocol: TCP
- containerPort: 7687
protocol: TCP
imagePullPolicy: Always
volumeMounts:
- name: neo4j-data
mountPath: /data
terminationMessagePolicy: File
image: 'neo4j:latest'
restartPolicy: Always
terminationGracePeriodSeconds: 30
dnsPolicy: ClusterFirst
securityContext: {}
schedulerName: default-scheduler
The service with ports 7474 and 7687 is okay. I generated two routes for each port. When I try to access using bolt://route:7687, I get this error: WebSocket connection to ‘ws:/’ failed: WebSocket is closed before the connection is established.
I also tried using neo4j://.
Any ideas how to fix that?
Thanks
New contributor
Juliana is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.