Skip to content

Commit 640c963

Browse files
authored
Merge pull request #34399 from Rishit-dagli/Rishit-dagli-securing-service
Update command in "Connecting Applications with Services" and separate out a command
2 parents 2773df0 + ee52f51 commit 640c963

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

content/en/docs/concepts/services-networking/connect-applications-service.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -315,8 +315,12 @@ kubectl delete deployments,svc my-nginx; kubectl create -f ./nginx-secure-app.ya
315315
At this point you can reach the nginx server from any node.
316316
317317
```shell
318-
kubectl get pods -o yaml | grep -i podip
319-
podIP: 10.244.3.5
318+
kubectl get pods -l run=my-nginx -o custom-columns=POD_IP:.status.podIPs
319+
POD_IP
320+
[map[ip:10.244.3.5]]
321+
```
322+
323+
```shell
320324
node $ curl -k https://10.244.3.5
321325
...
322326
<h1>Welcome to nginx!</h1>

0 commit comments

Comments
 (0)