From 98418ae37bcffc708f6df5abb4cbcafdd1a38176 Mon Sep 17 00:00:00 2001 From: Reneta Popova Date: Thu, 6 Mar 2025 11:23:44 +0000 Subject: [PATCH] Update the command for running cypher shell in a pod to access a cluster (#2169) --- .../kubernetes/quickstart-cluster/access-inside-k8s.adoc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/ROOT/pages/kubernetes/quickstart-cluster/access-inside-k8s.adoc b/modules/ROOT/pages/kubernetes/quickstart-cluster/access-inside-k8s.adoc index a1a8ac22e..09290fe5d 100644 --- a/modules/ROOT/pages/kubernetes/quickstart-cluster/access-inside-k8s.adoc +++ b/modules/ROOT/pages/kubernetes/quickstart-cluster/access-inside-k8s.adoc @@ -14,8 +14,8 @@ You run `cypher-shell` in a new pod and point it directly to one of the servers. + [source, shell, subs="attributes"] ---- -kubectl run --rm -it --image "neo4j:{neo4j-version-exact}-enterprise" cypher-shell \ - -- cypher-shell -a "neo4j://server-3.default.svc.cluster.local:7687" -u neo4j -p "my-password" +kubectl run --rm -it --env=NEO4J_ACCEPT_LICENSE_AGREEMENT=yes --image "neo4j:{neo4j-version-exact}-enterprise" cypher-shell \ + -- cypher-shell -a "neo4j://server-3.neo4j.svc.cluster.local:7687" -u neo4j -p "my-password" ---- + [source, result, subs="attributes", role=nocopy] @@ -23,7 +23,7 @@ kubectl run --rm -it --image "neo4j:{neo4j-version-exact}-enterprise" cypher-she If you don't see a command prompt, try pressing enter. -Connected to Neo4j using Bolt protocol version {neo4j-version} at neo4j://server-3.default.svc.cluster.local:7687 as user neo4j. +Connected to Neo4j using Bolt protocol version {neo4j-version} at neo4j://server-3.neo4j.svc.cluster.local:7687 as user neo4j. Type :help for a list of available commands or :exit to exit the shell. Note that Cypher queries must end with a semicolon. ----