podman-desktop icon indicating copy to clipboard operation
podman-desktop copied to clipboard

Display `containerPort` in the pod group

Open slemeur opened this issue 2 years ago • 1 comments

Is your enhancement related to a problem? Please describe

As a user, I'd like to quickly see the containerPort define in my Pods.

Sample yaml:


apiVersion: apps/v1beta1
kind: Deployment
metadata:
  name: postgres
spec:
  template:
    metadata:
      labels:
        app: postgres
    spec:
      containers:
      - name: postgres
        image: postgres:9.6.5
        ports:
        - containerPort: 5432
        env:
        - name: POSTGRES_DB
          value: url_shortener_db
        - name: POSTGRES_USER
          value: user
        - name: POSTGRES_PASSWORD
          value: mysecretpassword

Describe the solution you'd like

On the containers in the pod, I should be able to see the containerPort like I do when I start an image

Describe alternatives you've considered

No response

Additional context

No response

slemeur avatar Oct 10 '22 09:10 slemeur

@slemeur the

ports:
        - containerPort: 5432

is not kept by podman so it's not possible to retrieve that information

benoitf avatar Oct 12 '22 07:10 benoitf

How can i confirm that port is open just information isn't retrieved by PodmanDesktop?

milutinKY avatar Nov 07 '22 13:11 milutinKY

closing as we can see ports

benoitf avatar Feb 07 '24 21:02 benoitf