kubernetes/kops · error
found multiple EventBridge rules with the same name %s
Error message
found multiple EventBridge rules with the same name %s
What it means
ListRules returned more than one rule matching the kOps cluster-name prefix; kOps expects a uniquely named rule and cannot decide which one to delete.
Source
Thrown at pkg/model/awsmodel/nodeterminationhandler.go:211
}
clusterName := b.ClusterName()
clusterNamePrefix := awsup.GetClusterName40(clusterName)
ruleName := aws.String(clusterNamePrefix + "-" + rebalanceEvent.name)
eventBridge := cloud.(awsup.AWSCloud).EventBridge()
request := &eventbridge.ListRulesInput{
NamePrefix: ruleName,
}
response, err := eventBridge.ListRules(c.Context(), request)
if err != nil {
return fmt.Errorf("listing EventBridge rules: %w", err)
}
if response == nil || len(response.Rules) == 0 {
return nil
}
if len(response.Rules) > 1 {
return fmt.Errorf("found multiple EventBridge rules with the same name %s", *ruleName)
}
rule := response.Rules[0]
tagResponse, err := eventBridge.ListTagsForResource(c.Context(), &eventbridge.ListTagsForResourceInput{ResourceARN: rule.Arn})
if err != nil {
return fmt.Errorf("listing tags for EventBridge rule: %w", err)
}
owned := false
ownershipTag := "kubernetes.io/cluster/" + b.Cluster.ObjectMeta.Name
for _, tag := range tagResponse.Tags {
if fi.ValueOf(tag.Key) == ownershipTag && fi.ValueOf(tag.Value) == "owned" {
owned = true
break
}
}
if !owned {View on GitHub (pinned to 4c8573c808)
Solutions
- Inspect the duplicate EventBridge rules in the console and remove the stale one
- Ensure no other tool creates rules with the same cluster-name prefix
- Re-run the operation
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at pkg/model/awsmodel/nodeterminationhandler.go:211 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of kubernetes/kops@4c8573c808 (2026-09-05).
Data as JSON: /api/errors/b26f9e4b0227bd6f.
Report an issue: GitHub.