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 kube-proxy configuration for kubeadm #3958

Merged

Conversation

chadswen
Copy link
Member

  • Creates and defaults an ansible variable for every configuration option in the kubeproxy.config.k8s.io/v1alpha1 type spec
    • Fixes vars that were orphaned by removing non-kubeadm
    • Fixes previously harcoded kubeadm values
  • Introduces a main directory for role default files per component (requires ansible 2.6.0+)
    • Split out just kube-proxy.yml in this first effort
  • Removes the kube-proxy server field patch task

We should continue to pull out other components from main.yml into their own defaults files as I did here for defaults/main/kube-proxy.yml. I hope for and will need others to join me in this refactoring across the project until each component config template has a matching role defaults file, with shared defaults in kubespray-defaults or downloads

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Dec 29, 2018
@k8s-ci-robot k8s-ci-robot requested review from Atoms and mirwan December 29, 2018 01:33
@k8s-ci-robot k8s-ci-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Dec 29, 2018
@chadswen
Copy link
Member Author

ci check this

@chadswen chadswen force-pushed the kube-proxy-config-fix branch 5 times, most recently from 8245877 to 2abdcc0 Compare December 29, 2018 02:42
@chadswen chadswen force-pushed the kube-proxy-config-fix branch 12 times, most recently from 2c8d88f to 8c0e147 Compare January 3, 2019 04:59
- Creates and defaults an ansible variable for every configuration option in the `kubeproxy.config.k8s.io/v1alpha1` type spec
  - Fixes vars that were orphaned by removing non-kubeadm
  - Fixes previously harcoded kubeadm values
- Introduces a `main` directory for role default files per component (requires ansible 2.6.0+)
  - Split out just `kube-proxy.yml` in this first effort
- Removes the kube-proxy server field patch task

We should continue to pull out other components from `main.yml` into their own defaults files as I did here for `defaults/main/kube-proxy.yml`. I hope for and will need others to join me in this refactoring across the project until each component config template has a matching role defaults file, with shared defaults in `kubespray-defaults` or `downloads`
@chadswen chadswen force-pushed the kube-proxy-config-fix branch from 8c0e147 to c3fc6a4 Compare January 3, 2019 06:04
@woopstar
Copy link
Member

woopstar commented Jan 3, 2019

/lgtm
/approve

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

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: chadswen, woopstar

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

@riverzhang
Copy link
Contributor

riverzhang commented Jan 9, 2019

if use nginx-proxy LB. It will have problems.
if you deploy 3 masters, all of your kube-proxy traffic points to one of the masters and not routed from nginx-proxy to other master nodes.

spisarski pushed a commit to cablelabs/kubespray that referenced this pull request Feb 11, 2019
- Creates and defaults an ansible variable for every configuration option in the `kubeproxy.config.k8s.io/v1alpha1` type spec
  - Fixes vars that were orphaned by removing non-kubeadm
  - Fixes previously harcoded kubeadm values
- Introduces a `main` directory for role default files per component (requires ansible 2.6.0+)
  - Split out just `kube-proxy.yml` in this first effort
- Removes the kube-proxy server field patch task

We should continue to pull out other components from `main.yml` into their own defaults files as I did here for `defaults/main/kube-proxy.yml`. I hope for and will need others to join me in this refactoring across the project until each component config template has a matching role defaults file, with shared defaults in `kubespray-defaults` or `downloads`
LuckySB pushed a commit to southbridgeio/kubespray that referenced this pull request Feb 17, 2019
- Creates and defaults an ansible variable for every configuration option in the `kubeproxy.config.k8s.io/v1alpha1` type spec
  - Fixes vars that were orphaned by removing non-kubeadm
  - Fixes previously harcoded kubeadm values
- Introduces a `main` directory for role default files per component (requires ansible 2.6.0+)
  - Split out just `kube-proxy.yml` in this first effort
- Removes the kube-proxy server field patch task

We should continue to pull out other components from `main.yml` into their own defaults files as I did here for `defaults/main/kube-proxy.yml`. I hope for and will need others to join me in this refactoring across the project until each component config template has a matching role defaults file, with shared defaults in `kubespray-defaults` or `downloads`
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/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants