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

Added ability to set --service-node-port-range #3333

Merged
merged 1 commit into from
Sep 15, 2017

Conversation

robinpercy
Copy link
Contributor

Addresses: #3052 and #3326

From what I can tell, --service-node-port-range has been a valid option forever, so I haven't worried about k8s versions.

@justinsb @chrislovecnm let me know if any changes are required.

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Sep 4, 2017
@k8s-ci-robot
Copy link
Contributor

Hi @robinpercy. Thanks for your PR.

I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

I understand the commands that are listed here.

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. I understand the commands that are listed here.

@k8s-ci-robot k8s-ci-robot added needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Sep 4, 2017
Copy link
Contributor

@chrislovecnm chrislovecnm left a comment

Choose a reason for hiding this comment

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

Looks great. Can you either file an issue to validate the port range values, or include validation in this pr? Your choice. Also before we can merge you mind squashing?

@chrislovecnm
Copy link
Contributor

Thanks!

/ok-to-test

@k8s-ci-robot k8s-ci-robot removed the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Sep 4, 2017
Copy link
Contributor

@chrislovecnm chrislovecnm left a comment

Choose a reason for hiding this comment

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

Question for you

@@ -185,6 +185,8 @@ type KubeAPIServerConfig struct {
AdmissionControl []string `json:"admissionControl,omitempty" flag:"admission-control"`
// ServiceClusterIPRange is the service address range
ServiceClusterIPRange string `json:"serviceClusterIPRange,omitempty" flag:"service-cluster-ip-range"`
// A port range to reserve for services with NodePort visibility.
ServiceNodePortRange string `json:"serviceNodePortRange,omitempty" flag:"service-node-port-range"`
Copy link
Contributor

Choose a reason for hiding this comment

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

Would it be good to included the expected format here? 100-3000 for instance

Copy link
Contributor

@chrislovecnm chrislovecnm left a comment

Choose a reason for hiding this comment

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

Missed this validation, because I cannot read ;) Can we get a squash?

@chrislovecnm
Copy link
Contributor

Does github auto close issues when you say addresses? I know it picks up closes and fixes. Double check that the two issues get closed when this merges please.

@robinpercy
Copy link
Contributor Author

@chrislovecnm thanks for the feedback, I'll fix up and squash later today.

@robinpercy
Copy link
Contributor Author

@chrislovecnm I've squashed and fixed up the comments. The failed e2e test looks like a flake to me.

@robinpercy
Copy link
Contributor Author

/test pull-kops-e2e-kubernetes-aws

1 similar comment
@robinpercy
Copy link
Contributor Author

/test pull-kops-e2e-kubernetes-aws

@chrislovecnm
Copy link
Contributor

We have been having problems with e2e ... framework is not happy

@robinpercy
Copy link
Contributor Author

/test pull-kops-e2e-kubernetes-aws

@chrislovecnm
Copy link
Contributor

@justinsb how does this interact with the nodeport PR you just put in?? Do we need a follow-up PR to set the security rules correctly.

@justinsb
Copy link
Member

/lgtm

I'll put in a follow up to use this range in the security group and assign it to you for review @robinpercy :-) This is the kubeAPIServer section which has pretty weak guarantees.

Out of interest @robinpercy what are you setting here (and why)? Because you do have to be a little bit careful in the range you choose to avoid collisions!

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Sep 14, 2017
@k8s-github-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: justinsb

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these OWNERS Files:

You can indicate your approval by writing /approve in a comment
You can cancel your approval by writing /approve cancel in a comment

@k8s-github-robot k8s-github-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 14, 2017
@k8s-github-robot
Copy link

/test all [submit-queue is verifying that this PR is safe to merge]

@robinpercy
Copy link
Contributor Author

Thanks @justinsb. I'm actually not using this feature, just noticed a few other folks were looking for it - and I needed a reintroduction to the codebase 😄 @felipejfc was asking for guidance on safe settings for this value in #3052 though.

@robinpercy
Copy link
Contributor Author

/test pull-kops-e2e-kubernetes-aws

1 similar comment
@robinpercy
Copy link
Contributor Author

/test pull-kops-e2e-kubernetes-aws

@k8s-github-robot
Copy link

/test all [submit-queue is verifying that this PR is safe to merge]

@k8s-github-robot
Copy link

Automatic merge from submit-queue

@k8s-github-robot k8s-github-robot merged commit 893217f into kubernetes:master Sep 15, 2017
@justinsb
Copy link
Member

That's awesome @robinpercy - thanks for this.

I opened #3379 to use this value for the new support for configuring access to NodePort services (which we really want for the e2e test suite)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants