mirror of https://github.com/kubernetes/kops.git
Don't serve config from kops-controller for APIServer nodes
This commit is contained in:
parent
eefe085b2f
commit
e51221ae3f
|
|
@ -132,7 +132,7 @@ func (b *BootstrapScript) buildEnvironmentVariables(cluster *kops.Cluster) (map[
|
|||
env["GOSSIP_DNS_CONN_LIMIT"] = os.Getenv("GOSSIP_DNS_CONN_LIMIT")
|
||||
}
|
||||
|
||||
if os.Getenv("S3_ENDPOINT") != "" && (!model.UseKopsControllerForNodeBootstrap(cluster) || b.ig.IsMaster()) {
|
||||
if os.Getenv("S3_ENDPOINT") != "" && (!model.UseKopsControllerForNodeBootstrap(cluster) || b.ig.HasAPIServer()) {
|
||||
env["S3_ENDPOINT"] = os.Getenv("S3_ENDPOINT")
|
||||
env["S3_REGION"] = os.Getenv("S3_REGION")
|
||||
env["S3_ACCESS_KEY_ID"] = os.Getenv("S3_ACCESS_KEY_ID")
|
||||
|
|
|
|||
|
|
@ -1444,7 +1444,7 @@ func (n *nodeUpConfigBuilder) BuildConfig(ig *kops.InstanceGroup, apiserverAddit
|
|||
}
|
||||
}
|
||||
|
||||
useConfigServer := apiModel.UseKopsControllerForNodeBootstrap(cluster) && (role != kops.InstanceGroupRoleMaster)
|
||||
useConfigServer := apiModel.UseKopsControllerForNodeBootstrap(cluster) && !ig.HasAPIServer()
|
||||
if useConfigServer {
|
||||
host := "kops-controller.internal." + cluster.ObjectMeta.Name
|
||||
if cluster.UsesNoneDNS() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue