Giter Club home page Giter Club logo

Comments (10)

aojea avatar aojea commented on June 26, 2024 1

CNI: Calico v3.27.3

Assuming Calico is your implementation of network policies you should open the bug in that project, as Kubernetes only defines the APIs ...

however, it will be helpful to add an e2e test to get coverage so the implementations can validate this behavior

/help
/sig network

from kubernetes.

george-angel avatar george-angel commented on June 26, 2024 1

Created an issue with Calico: projectcalico/calico#8881

from kubernetes.

aojea avatar aojea commented on June 26, 2024 1

Not sure if related but I'm seeing strange results with kubectl port-forward and named ports for native sidecar containers as well.

Example:

kubectl port-forward svc/adguard-metrics metrics (named port on service)
error: Pod 'adguard-primary-7cc5d498f4-67zs4' does not have a named port 'metrics'

kubectl port-forward adguard-primary-7cc5d498f4-67zs4 metrics (named port on native sidecar)
error: Pod 'adguard-primary-7cc5d498f4-67zs4' does not have a named port 'metrics'

Prometheus also does not seem to be able to discover the endpoints for the native sidecar so metric scraping is also not working for me in this case.

Probes on this pod are able to use the named container port.

Reference:

@rouke-broersma please open a new issue, port-forward is a different subsystem that depend on sig-cli, please tag me there as well

from kubernetes.

k8s-ci-robot avatar k8s-ci-robot commented on June 26, 2024

This issue is currently awaiting triage.

If a SIG or subproject determines this is a relevant issue, they will accept it by applying the triage/accepted label and provide further guidance.

The triage/accepted label can be added by org members by writing /triage accepted in a comment.

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-sigs/prow repository.

from kubernetes.

neolit123 avatar neolit123 commented on June 26, 2024

/sig network

from kubernetes.

mauri870 avatar mauri870 commented on June 26, 2024

/assign

from kubernetes.

k8s-ci-robot avatar k8s-ci-robot commented on June 26, 2024

@aojea:
This request has been marked as needing help from a contributor.

Guidelines

Please ensure that the issue body includes answers to the following questions:

  • Why are we solving this issue?
  • To address this issue, are there any code changes? If there are code changes, what needs to be done in the code and what places can the assignee treat as reference points?
  • Does this issue have zero to low barrier of entry?
  • How can the assignee reach out to you for help?

For more details on the requirements of such an issue, please see here and ensure that they are met.

If this request no longer meets these requirements, the label can be removed
by commenting with the /remove-help command.

In response to this:

CNI: Calico v3.27.3

Assuming Calico is your implementation of network policies you should open the bug in that project, as Kubernetes only defines the APIs ...

however, it will be helpful to add an e2e test to get coverage so the implementations can validate this behavior

/help
/sig network

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-sigs/prow repository.

from kubernetes.

mauri870 avatar mauri870 commented on June 26, 2024

Created an issue with Calico: projectcalico/calico#8881

Thanks! I'll give it a try implementing it in Calico and will follow up with the e2e test here.

from kubernetes.

thockin avatar thockin commented on June 26, 2024

Do we know if Cilium and others handle this? It's a fun aspect that probably was not broadcasted well.

from kubernetes.

rouke-broersma avatar rouke-broersma commented on June 26, 2024

Not sure if related but I'm seeing strange results with kubectl port-forward and named ports for native sidecar containers as well.

Example:

kubectl port-forward svc/adguard-metrics metrics (named port on service)
error: Pod 'adguard-primary-7cc5d498f4-67zs4' does not have a named port 'metrics'

kubectl port-forward adguard-primary-7cc5d498f4-67zs4 metrics (named port on native sidecar)
error: Pod 'adguard-primary-7cc5d498f4-67zs4' does not have a named port 'metrics'

Prometheus also does not seem to be able to discover the endpoints for the native sidecar so metric scraping is also not working for me in this case.

Probes on this pod are able to use the named container port.

Reference:

from kubernetes.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.