Skip to content

Command in the "Connecting Applications with Services" page shows IP of multiple deployments #34389

@patrocinio

Description

@patrocinio

This is a Bug Report

Problem:

The section "Securing the Service" tells to run the following command:

kubectl get pods -o yaml | grep -i podip
When I run this command, I get the following output:

% kubectl get pods -o yaml | grep -i podip f:podIP: {} f:podIPs: podIP: 172.17.0.6 podIPs: f:podIP: {} f:podIPs: podIP: 172.17.0.3 podIPs:

which includes the pod IP of the curl deployment that was started earlier in this tutorial.

Proposed Solution:

This command should limit the output to the my-nginx, by including a selector:

% kubectl get pods -l run=my-nginx -o yaml | grep -i podip

Page to Update:
https://kubernetes.io/docs/concepts/services-networking/connect-applications-service/#securing-the-service

Metadata

Metadata

Assignees

Labels

kind/bugCategorizes issue or PR as related to a bug.needs-triageIndicates an issue or PR lacks a `triage/foo` label and requires one.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions