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

Add no_masq_local to weave network options. #5812

Merged
merged 4 commits into from
Oct 5, 2018

Conversation

arturo-c
Copy link
Contributor

This was an option that was added weave > 2.4.0 weaveworks/weave#2924 to use the k8s feature externalTrafficPolicy: Local on services to preserve the sourceIp. https://kubernetes.io/docs/tutorials/services/source-ip/

@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/XS Denotes a PR that changes 0-9 lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Sep 21, 2018
@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Sep 21, 2018
@arturo-c
Copy link
Contributor Author

/assign @chrislovecnm

Copy link
Contributor

@chrisz100 chrisz100 left a comment

Choose a reason for hiding this comment

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

Looks good, thanks!

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Sep 25, 2018
@chrisz100
Copy link
Contributor

/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 25, 2018
@KashifSaadat
Copy link
Contributor

Thanks for the PR @arturo-c! Just one extra thing to change, can you bump the relevant version here (e.g. to kops.2): https://github.com/kubernetes/kops/blob/master/upup/pkg/fi/cloudup/bootstrapchannelbuilder.go#L489

This is so that the new addition in the manifest file will be picked up and updated.

@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Oct 4, 2018
@arturo-c
Copy link
Contributor Author

arturo-c commented Oct 4, 2018

@KashifSaadat done

@KashifSaadat
Copy link
Contributor

Great, thanks!

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added lgtm "Looks good to me", indicates that a PR is ready to be merged. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Oct 4, 2018
@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Oct 4, 2018
@KashifSaadat
Copy link
Contributor

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Oct 5, 2018
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: arturo-c, KashifSaadat

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

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot merged commit 7b4133c into kubernetes:master Oct 5, 2018
@arturo-c arturo-c deleted the weave branch October 22, 2018 14:53
@denmaddog
Copy link

denmaddog commented Jul 27, 2019

Hello,
When I try adding this option I get:

# Found fields that are not recognized
# ...
#     networking:
#       weave:
# +       NoMasqLocal: 1
#         mtu: 8912
 kops version
Version 1.12.2 (git-3fc9bc486)

What am I doing wrong?

Thanks,

Zeljko

@denmaddog
Copy link

forget it, I used capital N, NoMasqLocal, inzstead of noMasqLocal.

Another thing - after updating cluster, and doing rolling-update --yes, it said that no rolling update required, but I do not see in weave-net pod spec this new option, even after I delete pod and it gets re-created - any idea why?

@denmaddog
Copy link

denmaddog commented Jul 27, 2019

Hello,

Even after updating cluster with this option, weave-net pods do not respect it, not in pod spec:

containers:
  - command:
    - /home/weave/launch.sh
    env:
    - name: HOSTNAME
      valueFrom:
        fieldRef:
          apiVersion: v1
          fieldPath: spec.nodeName
    - name: IPALLOC_RANGE
      value: 100.96.0.0/11
    - name: WEAVE_MTU
      value: "8912"

In KOPS:

     networking:
        weave:
          noMasqLocal: 1
          mtu: 8912
ps ax|grep weave-net
16465 ?        Sl     0:00 /home/weave/weaver --port=6783 --datapath=datapath --mtu 8912 --name=6a:5f:4e:ab:28:c4 --host-root=/host --http-addr=127.0.0.1:6784 --metrics-addr=0.0.0.0:6782 --docker-api= --no-dns --db-prefix=/weavedb/weave-net --ipalloc-range=100.96.0.0/11 --nickname=ip-10-12-1-36.eu-west-1.compute.internal --ipalloc-init consensus=6 --conn-limit=100 --expect-npc 10.12.1.36 10.12.1.38 10.12.2.146 10.12.2.192 10.12.3.112 10.12.3.250

What is wrong here?

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.

None yet

6 participants