Skip to content

Commit 7ff31fd

Browse files
committed
Provide long and short form for getting the public proxy IP
1 parent afca5a2 commit 7ff31fd

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

docs/source/jupyterhub/installation.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,20 @@ can try with `nano config.yaml`.
128128
proxy-7cb9bc4cc-9bdlp 1/1 Running 0 37s
129129
```
130130

131-
5. Find the IP we can use to access the JupyterHub. Run the following command
132-
until the external IP of the `proxy-public` [service](https://kubernetes.io/docs/concepts/services-networking/service/) is
133-
available.
131+
5. Find the IP we can use to access the JupyterHub. Run the following
132+
command until the `EXTERNAL-IP` of the `proxy-public` [service](https://kubernetes.io/docs/concepts/services-networking/service/)
133+
is available like in the example output.
134134

135+
```
136+
kubectl --namespace=<k8s-namespace> get svc proxy-public
137+
```
138+
139+
```
140+
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
141+
proxy-public LoadBalancer 10.51.248.230 104.196.41.97 80:31916/TCP 1m
142+
```
143+
144+
Or, use the short form:
135145
```
136146
kubectl -n <k8s-namespace> get svc proxy-public -o jsonpath='{.status.loadBalancer.ingress[].ip}'
137147
```

0 commit comments

Comments
 (0)