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 update server field in kube-proxy kubeconfig #4027

Merged
merged 1 commit into from
Feb 20, 2019

Conversation

riverzhang
Copy link
Contributor

@riverzhang riverzhang commented Jan 11, 2019

I know this is a bit hack.
If you use cloud LB, you can use kubeadm's controlPlaneEndpoint to configure kube-proxy's server field.
But for nginx-proxy, it didn't start when kubeadm join.

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jan 11, 2019
@k8s-ci-robot k8s-ci-robot requested review from ant31 and mattymo January 11, 2019 04:56
@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Jan 11, 2019
@riverzhang
Copy link
Contributor Author

ci check this

@riverzhang
Copy link
Contributor Author

riverzhang commented Jan 11, 2019

recover #3958

@chadswen
Copy link
Member

@riverzhang Can we share some details on when this is required for nginx-proxy? I'm not seeing that problem.

@riverzhang
Copy link
Contributor Author

if you deploy ha cluster by kubeadm. Need to prepare LB when kubeadm join and kubeadm init

nginx-proxy requires kubelet to start it. so it isn‘t possible to provide lb to kubeadm before.
you can't use kubeadm's controlPlaneEndpoint to configure kube-proxy's server field. if you use nginx-proxy.

@chadswen
Copy link
Member

@riverzhang which test is failing without this? I'm not seeing issues. Is the nginx LB enabled by default for most jobs?

If this issue only affects the local nginx LB, we should make sure this only runs when that is enabled.

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: riverzhang

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

@@ -1,7 +1,7 @@
# Instance settings
cloud_image_family: centos-7
cloud_region: us-central1-c
cloud_machine_type: "n1-standard-1"
cloud_machine_type: "n1-standard-2"
Copy link
Contributor

Choose a reason for hiding this comment

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

You should rebase to have this fixed

I know this is a bit hack.
If you use cloud LB, you can use kubeadm's controlPlaneEndpoint to configure kube-proxy's server field.
But for nginx-proxy, it didn't start when kubeadm init.
@rhockenbury
Copy link
Contributor

Ah. This one bite me today. Any chance on getting this merged in quickly?

@rhockenbury
Copy link
Contributor

@mattymo @mirwan

Can we get this merged soon? Clusters are not HA without it.

@riverzhang riverzhang merged commit d4a36aa into kubernetes-sigs:master Feb 20, 2019
@chadswen
Copy link
Member

@riverzhang which test is failing without this? I'm not seeing issues. Is the nginx LB enabled by default for most jobs?

If this issue only affects the local nginx LB, we should make sure this only runs when that is enabled.

@riverzhang I never got a response here.

@riverzhang
Copy link
Contributor Author

@chadswen The data traffic does not point to the address of the nginx-proxy, but point to the address of one of the masters.

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. 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