Add update server field in kube-proxy kubeconfig

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.
This commit is contained in:
rongzhang
2019-01-11 12:40:25 +08:00
parent fcd895d032
commit 3ed5f89cf5
2 changed files with 30 additions and 3 deletions

View File

@@ -21,9 +21,9 @@ bin_dir: /usr/local/bin
## Internal loadbalancers for apiservers
#loadbalancer_apiserver_localhost: true
## Local loadbalancer should use this port instead, if defined.
## Defaults to kube_apiserver_port (6443)
#nginx_kube_apiserver_port: 8443
## Local loadbalancer should use this port
## And must be set port 6443
nginx_kube_apiserver_port: 6443
### OTHER OPTIONAL VARIABLES
## For some things, kubelet needs to load kernel modules. For example, dynamic kernel services are needed