istio/istio · error
components.%sGateways[name=%s].k8s.replicaCount should not b
Error message
components.%sGateways[name=%s].k8s.replicaCount should not be set when values.gateways.istio-%sgateway.autoscaleEnabled is true
What it means
Error "components.%sGateways[name=%s].k8s.replicaCount should not be set when values.gateways.istio-%sgateway.autoscaleEnabled is true" thrown in istio/istio.
Source
Thrown at operator/pkg/apis/validation/validation.go:302
// checkAutoScaleAndReplicaCount warns when autoscaleEnabled is true and k8s replicaCount is set.
func checkAutoScaleAndReplicaCount(values *apis.Values, spec apis.IstioOperatorSpec) (Warnings, util.Errors) {
if spec.Components == nil {
return nil, nil
}
var warnings Warnings
if values.GetPilot().GetAutoscaleEnabled().GetValue() {
if spec.Components.Pilot != nil && spec.Components.Pilot.Kubernetes != nil && spec.Components.Pilot.Kubernetes.ReplicaCount > 1 {
warnings = append(warnings,
fmt.Errorf("components.pilot.k8s.replicaCount should not be set when values.pilot.autoscaleEnabled is true"))
}
}
validateGateways := func(gateways []apis.GatewayComponentSpec, gwType string) {
const format = "components.%sGateways[name=%s].k8s.replicaCount should not be set when values.gateways.istio-%sgateway.autoscaleEnabled is true"
for _, gw := range gateways {
if gw.Kubernetes != nil && gw.Kubernetes.ReplicaCount != 0 {
warnings = append(warnings, fmt.Errorf(format, gwType, gw.Name, gwType))
}
}
}
if values.GetGateways().GetIstioIngressgateway().GetAutoscaleEnabled().GetValue() {
validateGateways(spec.Components.IngressGateways, "ingress")
}
if values.GetGateways().GetIstioEgressgateway().GetAutoscaleEnabled().GetValue() {
validateGateways(spec.Components.EgressGateways, "egress")
}
return warnings, nil
}
// checkServicePorts validates Service ports. Specifically, this currently
// asserts that all ports will bind to a port number greater than 1024 when not
// running as root.View on GitHub (pinned to 8dc789c5cf)
When it happens
Trigger: Thrown at operator/pkg/apis/validation/validation.go:302 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of istio/istio@8dc789c5cf (2026-08-15).
Data as JSON: /api/errors/9f3d21446659d6d9.
Report an issue: GitHub.