mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-15 06:01:50 +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 {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
rangeRegistry.Range = serviceClusterIPRange.String()
|
rangeRegistry.Range = c.Services.SecondaryClusterIPRange.String()
|
||||||
if len(rangeRegistry.ResourceVersion) == 0 {
|
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 ...")
|
klog.Infof("kube-apiserver started with IP allocator and dual write enabled but bitmap allocator does not exist, recreating it ...")
|
||||||
err := etcd.CreateOrUpdate(rangeRegistry)
|
err := etcd.CreateOrUpdate(rangeRegistry)
|
||||||
|
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user