Merge pull request #34399 from Rishit-dagli/Rishit-dagli-securing-service

Update command in "Connecting Applications with Services" and separate out a command
pull/35051/head
Kubernetes Prow Robot 2022-08-25 21:34:11 -07:00 committed by GitHub
commit 640c963c3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 2 deletions

View File

@ -315,8 +315,12 @@ kubectl delete deployments,svc my-nginx; kubectl create -f ./nginx-secure-app.ya
At this point you can reach the nginx server from any node.
```shell
kubectl get pods -o yaml | grep -i podip
podIP: 10.244.3.5
kubectl get pods -l run=my-nginx -o custom-columns=POD_IP:.status.podIPs
POD_IP
[map[ip:10.244.3.5]]
```
```shell
node $ curl -k https://10.244.3.5
...
<h1>Welcome to nginx!</h1>