@@ -128,26 +128,23 @@ can try with `nano config.yaml`.
128
128
proxy-7cb9bc4cc-9bdlp 1/1 Running 0 37s
129
129
```
130
130
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 like in the example output.
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.
134
134
135
135
```
136
- kubectl get service --namespace <k8s-namespace>
136
+ kubectl --namespace <k8s-namespace> get service proxy-public
137
137
```
138
138
139
139
```
140
- NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
141
- hub ClusterIP 10.51.243.14 <none> 8081/TCP 1m
142
- proxy-api ClusterIP 10.51.247.198 <none> 8001/TCP 1m
140
+ NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
143
141
proxy-public LoadBalancer 10.51.248.230 104.196.41.97 80:31916/TCP 1m
144
142
```
145
143
146
- If the IP for ` proxy-public ` is too long to fit into the window, you
147
- can find the longer version by calling:
144
+ Or, use the short form:
148
145
149
146
```
150
- kubectl describe service proxy-public --namespace <k8s-namespace>
147
+ kubectl --namespace <k8s-namespace> get service proxy-public --output jsonpath='{.status.loadBalancer.ingress[].ip}'
151
148
```
152
149
153
150
6 . To use JupyterHub, enter the external IP for the ` proxy-public ` service in
0 commit comments