Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

targetgroup.elbv2 port not reconciled - immutable field requiring recreate? #2354

Open
michaelvl opened this issue Feb 24, 2025 · 0 comments
Labels
area/documentation Issues or PRs related to documentation and examples kind/bug Categorizes issue or PR as related to a bug. service/elbv2 Indicates issues or PRs that are related to elbv2-controller.

Comments

@michaelvl
Copy link

Describe the bug

I created a TargetGroup resource, e.g.:

apiVersion: elbv2.services.k8s.aws/v1alpha1
kind: TargetGroup
metadata:
  name: ack-elbv2-test
spec:
  name: ack-elbv2-test
  ipAddressType: ipv4
  port: 80
  protocol: HTTP
  targetType: ip
  ...

This created the TargetGroup in AWS as expected. I then changed the port to a different value and reapplied. The updated resource definition was accepted by the API server, however, the targetgroup in AWS was not updated. The Kubernetes resource was also reverted back to the original port value, i.e. a subsequent kubectl get showed the old value.

I suspect this is a more general issue about values that cannot be changed after a given AWS resource have been created - i.e. the kind of resources where Terraform would recreate the resource instead of doing in-place updates. However, I don't see the issue about 'in-place' vs. 'recreate' addressed in the documentation.

Environment

  • Kubernetes version: 1.31
  • Using EKS (yes/no), if so version? yes, 1.31
  • AWS service targeted (S3, RDS, etc.) ec2, version 1.3.4
@michaelvl michaelvl changed the title targetgroup.elbv2 port not reconciled - immutable field? targetgroup.elbv2 port not reconciled - immutable field requiring recreate? Feb 24, 2025
@michaelhtm michaelhtm added service/elbv2 Indicates issues or PRs that are related to elbv2-controller. kind/bug Categorizes issue or PR as related to a bug. area/documentation Issues or PRs related to documentation and examples labels Feb 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/documentation Issues or PRs related to documentation and examples kind/bug Categorizes issue or PR as related to a bug. service/elbv2 Indicates issues or PRs that are related to elbv2-controller.
Projects
None yet
Development

No branches or pull requests

2 participants