aws-controllers-k8s / community

AWS Controllers for Kubernetes (ACK) is a project enabling you to manage AWS services from Kubernetes
https://aws-controllers-k8s.github.io/community/
Apache License 2.0
2.39k stars 253 forks source link

Support `elbv2` Listener, Rules, and TargetGroup CRDs #2048

Open alagukannan opened 5 months ago

alagukannan commented 5 months ago

We are able to create a NLB but there is no way for us to create/associate a listener along with target group to it. How do we do it?

apiVersion: elbv2.services.k8s.aws/v1alpha1
kind: LoadBalancer
metadata:
  name: my-nlb
spec:
  name: "my-nlb"
  type: "network"
  scheme: "internet-facing"
  subnets:
    - subnet-dsfd
    - subnet-df 
    - subnet-df
  securityGroups: 
    - sg-dfd
  tags:
    - key: "test"
      value: "test"
a-hilaly commented 5 months ago

@alagukannan We're planning on adding two new CRDs for Listeners and TargetGroups, i'm currently working on them. Stay tuned :)

a-hilaly commented 5 months ago

@alagukannan We just published Rule, TargetGroup, and Listener CRDs, checkout https://aws-controllers-k8s.github.io/community/reference/elbv2/v1alpha1/listener/ ~

a-hilaly commented 5 months ago

Still wrapping my head around how "Targets" should be implemented... Maybe we could make them just a spec field within the TargetGroup CRD? Thoughts on this approach?

alagukannan commented 5 months ago

Yes they should be part of the spec of TargetGroup itself. Status fields should track the individual targets status and then to syncComplete once all targets are registered and healthy

omri-shilton commented 1 month ago

Any news regarding targets?