Skip to content

Commit e273e51

Browse files
Update repl connection instructions for data-retention.adoc (#9717)
- Server >= 4.8 no longer includes lein client in the front-end container - Need to use a port forward and docker container instead. Co-authored-by: Rosie Yohannan <rosie@circleci.com>
1 parent e73414f commit e273e51

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/server-admin-4.8/modules/operator/pages/data-retention.adoc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,15 @@ You can set up retention policies for both Mongo and PostgreSQL to clean up data
1515
+
1616
[source,bash]
1717
----
18-
kubectl exec -it <frontend-xxx> -- /bin/bash
18+
kubectl port-forward $(kubectl get pods -l app=frontend -o jsonpath='{.items[0].metadata.name}' -n <namespace>) -n <namespace> 16000:6005 &
1919
----
2020
+
2121
Then, connect to the REPL:
2222
+
2323
[source,bash]
2424
----
25-
lein repl :connect 6005
25+
docker run --rm -it clojure bash
26+
lein repl :connect host.docker.internal:16000
2627
----
2728

2829
. Once connected, the current setting can be verified using the following command:

0 commit comments

Comments
 (0)