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

Fix "invalid port in upstream" on nginx controller #58

Merged
merged 1 commit into from
Dec 21, 2016

Conversation

gianrubio
Copy link
Contributor

If you don't have the ingress port mapped same as the service, you got the error "invalid port in upstream" on nginx. To fix this, we should check if the targetPort is valid (>0).
Fix #53

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Dec 14, 2016
@k8s-reviewable
Copy link

This change is Reviewable

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.02%) to 39.753% when pulling bda6646 on gianrubio:branch/invalid-port into 0af8ccc on kubernetes:master.

@gianrubio
Copy link
Contributor Author

gianrubio commented Dec 14, 2016

This warning doesn't make sense, Please don't merge this. I'll write a warning msg rather hide the error.

@aledbf could you check this PR

@aledbf aledbf self-requested a review December 21, 2016 16:30
@aledbf
Copy link
Member

aledbf commented Dec 21, 2016

/lgtm

@k8s-ci-robot
Copy link
Contributor

@aledbf: you can't LGTM a PR unless you are assigned as a reviewer.

In response to this comment:

/lgtm

If you have questions or suggestions related to this bot's behavior, please file an issue against the kubernetes/test-infra repository.

@aledbf
Copy link
Member

aledbf commented Dec 21, 2016

@gianrubio sorry for the delay in the review

@aledbf aledbf self-assigned this Dec 21, 2016
Copy link
Member

@aledbf aledbf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@aledbf aledbf merged commit 825a4a6 into kubernetes:master Dec 21, 2016
@gianrubio gianrubio deleted the branch/invalid-port branch February 22, 2017 21:49
haoqing0110 referenced this pull request in stolostron/management-ingress Mar 5, 2021
haoqing0110 referenced this pull request in stolostron/management-ingress Mar 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Invalid port in upstream
5 participants