Skip to content

Commit 367cb78

Browse files
committed
Use --watch flag instead of checking multiple times
1 parent 7e867e7 commit 367cb78

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

content/en/docs/tasks/access-application-cluster/connecting-frontend-backend.md

+8-4
Original file line numberDiff line numberDiff line change
@@ -160,24 +160,28 @@ Once you’ve created a Service of type LoadBalancer, you can use this
160160
command to find the external IP:
161161

162162
```
163-
kubectl get service frontend
163+
kubectl get service frontend --watch
164164
```
165165

166-
The external IP field may take some time to populate. If this is the
167-
case, the external IP is listed as `<pending>`.
166+
This will display the configuration for the `frontend` service and watch for
167+
changes. Initially, the external IP will be listed as `<pending>`:
168168

169169
```
170170
NAME CLUSTER-IP EXTERNAL-IP PORT(S) AGE
171171
frontend 10.51.252.116 <pending> 80/TCP 10s
172172
```
173173

174-
Repeat the same command again until it shows an external IP address:
174+
As soon as an external IP is provisioned, however, the configuration will be
175+
updated to include the new IP under the `EXTERNAL-IP` heading:
175176

176177
```
177178
NAME CLUSTER-IP EXTERNAL-IP PORT(S) AGE
178179
frontend 10.51.252.116 XXX.XXX.XXX.XXX 80/TCP 1m
179180
```
180181

182+
That IP can now be used to interact with the `frontend` service from outside the
183+
cluster.
184+
181185
### Send traffic through the frontend
182186

183187
The frontend and backends are now connected. You can hit the endpoint

0 commit comments

Comments
 (0)