Skip to content

Commit 98418ae

Browse files
authored
Update the command for running cypher shell in a pod to access a cluster (#2169)
1 parent f8ee272 commit 98418ae

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

modules/ROOT/pages/kubernetes/quickstart-cluster/access-inside-k8s.adoc

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,16 @@ You run `cypher-shell` in a new pod and point it directly to one of the servers.
1414
+
1515
[source, shell, subs="attributes"]
1616
----
17-
kubectl run --rm -it --image "neo4j:{neo4j-version-exact}-enterprise" cypher-shell \
18-
-- cypher-shell -a "neo4j://server-3.default.svc.cluster.local:7687" -u neo4j -p "my-password"
17+
kubectl run --rm -it --env=NEO4J_ACCEPT_LICENSE_AGREEMENT=yes --image "neo4j:{neo4j-version-exact}-enterprise" cypher-shell \
18+
-- cypher-shell -a "neo4j://server-3.neo4j.svc.cluster.local:7687" -u neo4j -p "my-password"
1919
----
2020
+
2121
[source, result, subs="attributes", role=nocopy]
2222
----
2323
If you don't see a command prompt, try pressing enter.
2424
2525
26-
Connected to Neo4j using Bolt protocol version {neo4j-version} at neo4j://server-3.default.svc.cluster.local:7687 as user neo4j.
26+
Connected to Neo4j using Bolt protocol version {neo4j-version} at neo4j://server-3.neo4j.svc.cluster.local:7687 as user neo4j.
2727
Type :help for a list of available commands or :exit to exit the shell.
2828
Note that Cypher queries must end with a semicolon.
2929
----

0 commit comments

Comments
 (0)