Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

endPort not shown in kubectl describe netpol #163

Closed
huntergregory opened this issue Oct 26, 2023 · 7 comments · Fixed by kubernetes/kubernetes#123316
Closed

endPort not shown in kubectl describe netpol #163

huntergregory opened this issue Oct 26, 2023 · 7 comments · Fixed by kubernetes/kubernetes#123316
Assignees
Labels
kind/support Categorizes issue or PR as a support question.

Comments

@huntergregory
Copy link
Contributor

Issue

Recently, our customer was confused if NetworkPolicy implements endPort since kubectl describe does not include endPort field.

From: Azure/azure-container-networking#2313

Question

Should we support port ranges in this field of kubectl describe?

To Port: 80/TCP

Repro

NetPol

apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
  name: base
  namespace: test
spec:
  podSelector:
    matchLabels:
      pod: a
  policyTypes:
    - Egress
  egress:
    - to:
      ports:
        - protocol: TCP
          port: 80
          endPort: 82

kubectl describe

$ kubectl describe netpol -n test base
Name:         base
Namespace:    test
Created on:   2023-10-26 13:36:09 -0700 PDT
Labels:       <none>
Annotations:  <none>
Spec:
  PodSelector:     pod=a
  Not affecting ingress traffic
  Allowing egress traffic:
    To Port: 80/TCP
    To: <any> (traffic not restricted by destination)
  Policy Types: Egress

versions

$ kubectl version
Client Version: v1.28.3
Server Version: v1.27.3
@kundan2707
Copy link
Contributor

/kind support

@k8s-ci-robot k8s-ci-robot added the kind/support Categorizes issue or PR as a support question. label Oct 31, 2023
@tssurya
Copy link
Contributor

tssurya commented Oct 31, 2023

/assign @tssurya
I'd like to take a stab at this...

@k8s-triage-robot
Copy link

The Kubernetes project currently lacks enough contributors to adequately respond to all issues.

This bot triages un-triaged issues according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue as fresh with /remove-lifecycle stale
  • Close this issue with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jan 31, 2024
@huntergregory
Copy link
Contributor Author

/remove-lifecycle stale

@k8s-ci-robot k8s-ci-robot removed the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jan 31, 2024
@tssurya
Copy link
Contributor

tssurya commented Feb 13, 2024

@jcaamano will take over here.
/assign @jcaamano
/unassign @tssurya

@k8s-ci-robot
Copy link
Contributor

@tssurya: GitHub didn't allow me to assign the following users: jcaamano.

Note that only kubernetes-sigs members with read permissions, repo collaborators and people who have commented on this issue/PR can be assigned. Additionally, issues/PRs can only have 10 assignees at the same time.
For more information please see the contributor guide

In response to this:

@jcaamano will take over here.
/assign @jcaamano
/unassign @tssurya

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@jcaamano
Copy link

/assign @jcaamano

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/support Categorizes issue or PR as a support question.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants