mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-14 13:45:06 +00:00
Merge pull request #127598 from aojea/servicecidr_seconday_dualwrite
bugfix: initialize secondary range registry with the right value
This commit is contained in:
@@ -440,7 +440,7 @@ func (c *Config) newServiceIPAllocators() (registries rangeRegistries, primaryCl
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
rangeRegistry.Range = serviceClusterIPRange.String()
|
||||
rangeRegistry.Range = c.Services.SecondaryClusterIPRange.String()
|
||||
if len(rangeRegistry.ResourceVersion) == 0 {
|
||||
klog.Infof("kube-apiserver started with IP allocator and dual write enabled but bitmap allocator does not exist, recreating it ...")
|
||||
err := etcd.CreateOrUpdate(rangeRegistry)
|
||||
|
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user