Skip to content

Avoid target group reconcile due to externally registered targets. #2623

@dahamaws

Description

@dahamaws

Is your feature request related to a problem?
I am using AWS controller for EKS to create NLB, Target group and listeners. Also using the EKS Automode built in LB controller to register targets using TargetRoleBinding.

The problem is once the targets are registered to the target group, ACK detect the TargetGroup resource state has changed and it automatically deregister the targets. Target groups are highly dynamic and its is not particle to hard code them in TargetGroup objects. Can we have a feature to avoid deleting externally created targets.

TargetGroup object

apiVersion: elbv2.services.k8s.aws/v1alpha1
kind: TargetGroup
metadata:
  name: app-target-group
  namespace: default
  annotations:
    services.k8s.aws/adoption-policy: "adopt"
spec:
  name: app-tg
  port: 80
  protocol: TCP
  targetType: ip
  vpcID: vpc-xxxxxxee0327141cc   # Replace with your VPC ID
  healthCheckProtocol: TCP
  healthCheckPort: "80"
  healthCheckIntervalSeconds: 30
  healthyThresholdCount: 3
  unhealthyThresholdCount: 3


Describe the solution you'd like
ELB2 controller does not mark externally registered target as a state change.

Describe alternatives you've considered

The workaround I have is removing TargetGroup object from here.

      - name: RECONCILE_RESOURCES
          value: Listener,LoadBalancer,Rule, TargetGroup

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions