Skip to content

Commit cb599d0

Browse files
Revert "Update instructions on how to access the Nomad UI (#9361)"
This reverts commit b606efa. We actually need to go back to the first iteration of the instructions as we have once again changed the bind address of the Nomad servers.
1 parent eccae36 commit cb599d0

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

jekyll/_cci2/server/latest/operator/introduction-to-nomad-cluster-operation.adoc

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,20 @@ Complete the following steps to get logs from the allocation of the specified jo
9999

100100
Nomad provides a web UI for inspecting your Nomad cluster. If you are using an internalized Nomad deployment, which is the default setup with CircleCI server, follow the instructions in this section to temporarily access the UI for troubleshooting purposes. For a more permanent solution, consider externalizing Nomad and consult the official Nomad documentation for setting up routing.
101101

102-
. In a terminal, run the following command to set up port forwarding:
102+
. Nomad binds to its Pod IP. To port-forward to the Nomad service, you need to set up a lightweight tunneling mechanism within the cluster as follows:
103103
+
104104
[source,bash]
105105
----
106-
kubectl port-forward svc/nomad-server 4646:4646 -n <server-namespace>
106+
export NOMAD_IP=$(kubectl get svc nomad-server -o jsonpath='{.spec.clusterIP}' -n <server-namespace>)
107+
108+
kubectl run nomad-tunnel --rm -it --image=alpine --restart=Never -n <server-namespace> -- /bin/sh -c "apk add --no-cache socat && socat TCP-LISTEN:4646,fork,reuseaddr TCP:$NOMAD_IP:4646"
109+
----
110+
111+
. In another terminal, run the following command to set up port forwarding:
112+
+
113+
[source,bash]
114+
----
115+
kubectl port-forward pod/nomad-tunnel 4646:4646 -n <server-namespace>
107116
----
108117

109118
. Navigate to `http://localhost:4646/ui` in your browser to access the Nomad UI. For more information on utilizing the Nomad UI, refer to the link:https://developer.hashicorp.com/nomad/tutorials/web-ui[Nomad documentation].

0 commit comments

Comments
 (0)