You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to create a kOps cluster on single AZ in AWS (to avoid inter AZ data transfer costs). Single AZ is enough to meet our availability requirements.
However, I still need more than one master node so I scaled up my instanceGroup to have minSize:3 and maxSize:3 on the existing master instanceGroup spec. However, kOps appears to have a built in limitation on using only one instance per instanceGroup for master nodes.
allErrs=append(allErrs, field.Invalid(field.NewPath("spec", "minSize"), fi.ValueOf(g.Spec.MinSize), "controlPlane InstanceGroup must have minSize set to 1"))
}
iffi.ValueOf(g.Spec.MaxSize) >1 {
allErrs=append(allErrs, field.Invalid(field.NewPath("spec", "maxSize"), fi.ValueOf(g.Spec.MaxSize), "controlPlane InstanceGroup must have maxSize set to 1, add more InstanceGroups instead"))
I could create multiple instanceGroups on the same AZ but that would mean duplicating the same config and also it just doesn't make sense.
Any advise/workarounds welcome. Happy to make a pull request to fix it if required.
The text was updated successfully, but these errors were encountered:
arpanadhikari
changed the title
Minimum size of controlplane instance group
controlPlane InstanceGroup must have maxSize set to 1, add more InstanceGroups instead
Feb 3, 2025
I'm trying to create a kOps cluster on single AZ in AWS (to avoid inter AZ data transfer costs). Single AZ is enough to meet our availability requirements.
However, I still need more than one master node so I scaled up my instanceGroup to have minSize:3 and maxSize:3 on the existing master instanceGroup spec. However, kOps appears to have a built in limitation on using only one instance per instanceGroup for master nodes.
kops/pkg/apis/kops/validation/instancegroup.go
Lines 52 to 56 in 61e7ac2
I could create multiple instanceGroups on the same AZ but that would mean duplicating the same config and also it just doesn't make sense.
Any advise/workarounds welcome. Happy to make a pull request to fix it if required.
My configuration:
Also, Is this a bug?
The text was updated successfully, but these errors were encountered: