Skip to content

Add a default ingress ip range - #10500

Merged
openshift-bot merged 1 commit into
openshift:masterfrom
marun:default-ingress-cidr
Aug 19, 2016
Merged

openshift-bot merged 1 commit into
openshift:masterfrom
marun:default-ingress-cidr

Conversation

@marun

@marun marun commented Aug 18, 2016 •

Copy link
Copy Markdown
Contributor

If no ingress ip range is specified, default to a private range.
Ingress ip allocation can be disabled by specifying "0.0.0.0/32" for the range.

Addresses #10387

cc: @smarterclayton

@marun

marun commented Aug 18, 2016

Copy link
Copy Markdown
Contributor Author

Is this correct? I couldn't see how the 'cloud-provider' argument will be populated in config.KubeMasterConfig, so I'm not sure how the check in MasterArgs.BuildSerializeableMasterConfig() will ever fail.

@marun

marun commented Aug 18, 2016

Copy link
Copy Markdown
Contributor Author

[test]

Comment thread pkg/cmd/server/start/network_args.go Outdated
// that will be allocated from. For security reasons, you should
// ensure that this range does not overlap with the CIDRs reserved
// for external ips, nodes, pods, or services.
IngressIPNetworkCIDR string

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

You don't need to add this here - we stopped allowing all but "critical" new flags here. Just adding it to the config is sufficient

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

My intent was to allow an admin to set 0.0.0.0/32 to avoid having the default be set. From what I can tell, if IngressIPNetworkCIDR can't be set by arg, BuildSerializeableMasterConfig will always set the default ingress cidr (unless it conflicts with arg-provided service and cluster net). Am I missing something, or is that what you intend?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

If no ingress ip range is specified, default to a private range.
Ingress ip allocation can be disabled by specifying "0.0.0.0/32"
for the range.
@openshift-bot

Copy link
Copy Markdown
Contributor

Evaluated for origin test up to ee401cc

@openshift-bot

Copy link
Copy Markdown
Contributor

@marun marun added this to the 1.3.0 milestone Aug 19, 2016
@smarterclayton

Copy link
Copy Markdown
Contributor

LGTM [merge]

@openshift-bot

openshift-bot commented Aug 19, 2016 •

Copy link
Copy Markdown
Contributor

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/8263/) (Image: devenv-rhel7_4883)

@openshift-bot

Copy link
Copy Markdown
Contributor

Evaluated for origin merge up to ee401cc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants