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

Require a label to indicate ip-masq-agent readiness. #47764

Merged
merged 1 commit into from
Jun 20, 2017

Conversation

dnardo
Copy link
Contributor

@dnardo dnardo commented Jun 20, 2017

This prevents a DaemonSet from running on nodes where the master is 1.7 and has this
enabled by default, however, the nodes are still < 1.7.

What this PR does / why we need it:

Which issue this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged): fixes #
#47752

Special notes for your reviewer:

Release note:

a daemonset running on nodes where the master is 1.7 and has this
enabled by default, however, the nodes are still < 1.7.
@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Jun 20, 2017
@k8s-github-robot k8s-github-robot added size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. release-note-label-needed labels Jun 20, 2017
@dnardo
Copy link
Contributor Author

dnardo commented Jun 20, 2017

/assign bowei

@dnardo
Copy link
Contributor Author

dnardo commented Jun 20, 2017

/assign @bowei

@dnardo
Copy link
Contributor Author

dnardo commented Jun 20, 2017

/assign @dchen1107

@dchen1107
Copy link
Member

After this pr, shouldn't some tests in v1.7 requiring ip-masq-agent running by default will fail? Otherwise, I am fine with this change.

@dnardo
Copy link
Contributor Author

dnardo commented Jun 20, 2017

Good point. There is a no-snat test. It looks like it doesn't use the yaml. It hard codes the image. Running that test now to make sure this doesn't break it.

@dchen1107
Copy link
Member

/lgtm

I am approving this to stop the bleeding edge first.

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

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dchen1107, dnardo

Associated issue: 47752

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 Jun 20, 2017
@k8s-github-robot
Copy link

Adding do-not-merge because the release note process has not been followed.
One of the following labels is required "release-note", "release-note-action-required", "release-note-experimental" or "release-note-none".
Please see: https://github.com/kubernetes/kubernetes/blob/master/docs/devel/pull-requests.md#release-notes.

@k8s-github-robot k8s-github-robot added the do-not-merge DEPRECATED. Indicates that a PR should not merge. Label can only be manually applied/removed. label Jun 20, 2017
@dchen1107 dchen1107 added release-note-none Denotes a PR that doesn't merit a release note. and removed do-not-merge DEPRECATED. Indicates that a PR should not merge. Label can only be manually applied/removed. release-note-label-needed labels Jun 20, 2017
@dchen1107
Copy link
Member

I am manually merging this one to fix upgrade tests.

@mikedanese
Copy link
Member

I suspect this broke all GKE test runs.

@mikedanese
Copy link
Member

It looks like this broke pod egress to any public IP in both GCE and GKE. Should a e2e test run in our prepull suite have caught this?

@@ -33,6 +33,8 @@ spec:
volumeMounts:
- name: config
mountPath: /etc/config
nodeSelector:
beta.kubernetes.io/masq-agent-ds-ready: "true"
Copy link
Member

Choose a reason for hiding this comment

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

should this label be added to 1.7 nodes?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes.

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Right but if those env vars are set in GKE that would also handle this.

Yesterday a PR that set NON_MASQUERADE_CIDR=0.0.0.0/0 in the gce scripts was reverted. Since that was reverted the non-masq-cidr will get set to 10/8. If that is the case the the ip-masq-agent won't even run and the kubelet would take care of the masquerading. So I think that whether those labels are set here doesn't matter.

I think what is needed now is that we set gce back to using NON_MASQUERADE_CIDR=0.0.0.0/0 and we add the labels.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think the confusion on my end is that I thought pr/#46473 was reverted. Which would have made this moot, but it turns out it wasn't.

pr/#47794 should fix the issue.

Copy link
Member

Choose a reason for hiding this comment

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

yeah, I asked #47764 (comment) which assume ip-masq-agent won't run since there is no node marking with the newly introduced label. But on my side, I was confused that NON_MASQUERADE_CIDR=0.0.0.0/0 is another label on Kubelet which tells Kubelet to stop masq-ing. :-( @mikedanese Thanks for spot the issue.

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. release-note-none Denotes a PR that doesn't merit a release note. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants