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

Metrics service in Helm chart should have protocol in port name #8660

Closed
anders-swanson opened this issue Jun 1, 2022 · 5 comments · Fixed by #8665
Closed

Metrics service in Helm chart should have protocol in port name #8660

anders-swanson opened this issue Jun 1, 2022 · 5 comments · Fixed by #8665
Labels
kind/feature Categorizes issue or PR as related to a new feature. needs-priority needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one.

Comments

@anders-swanson
Copy link
Contributor

The controller-service-metrics port in the ingress-nginx helm chart is missing a protocol prefix for the K8s Service port name: https://github.com/kubernetes/ingress-nginx/blob/main/charts/ingress-nginx/templates/controller-service-metrics.yaml#L34

The service port name should follow the convention of other ports, e.g., https://github.com/kubernetes/ingress-nginx/blob/main/charts/ingress-nginx/templates/controller-service-webhook.yaml#L31, to allow integration with other tools like Istio+Kiali.

@anders-swanson anders-swanson added the kind/feature Categorizes issue or PR as related to a new feature. label Jun 1, 2022
@k8s-ci-robot
Copy link
Contributor

@anders-swanson: This issue is currently awaiting triage.

If Ingress contributors 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/test-infra repository.

@k8s-ci-robot k8s-ci-robot added needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. needs-priority labels Jun 1, 2022
@longwuyuan
Copy link
Contributor

If this is because istio/kiali can not use a portNumber, then are you thinking of submitting a PR for this ?

@anders-swanson
Copy link
Contributor Author

Yes, I can submit a PR for this.

@longwuyuan
Copy link
Contributor

Thank you. Please help by posting the config of every related objects using Kubectl describe and the screenshots of the end-user experience in the PR. I hope it will be optional and not a hard requirement to have a portName.

On a different note, do you know if this problem is related to istio/kiali . Just curious because wondering why its not been reported before.

@anders-swanson
Copy link
Contributor Author

It is. Istio/Kiali have a requirement that every port follow the naming convention <protocol>[-name]. Without the protocol prefixing the port name, Kiali is unable to display metrics on mesh traffic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Categorizes issue or PR as related to a new feature. needs-priority needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants