cloudcaptainsh / cloudcaptain

Issue Tracker for CloudCaptain
13 stars 3 forks source link

Use custom Application Load Balancer #202

Closed lukaswelte closed 6 years ago

lukaswelte commented 6 years ago

When using a Classic Elastic Load Balancer it is possible to use the elb= parameter of boxfuse run to configure using that load balancer. In the case the name of an Application Load Balancer is passed into elb boxfuse throws an error it cannot find a load balancer with that name, although an ALB with that name exists.

How should a custom ALB be configured in boxfuse run?

axelfontaine commented 6 years ago

This is what the targetGroup parameter is for.

You can use it to tell Boxfuse to associate your app with a specific target group of a custom ALB.

lukaswelte commented 6 years ago

Thank you for the quick & great answer!

lukaswelte commented 6 years ago

@axelfontaine a quick follow up. I configured the ALB and passed the targetGroup parameter but I still see this error: WARNING: Run failed: Unable to find ELB elevation-alpha => reconfigure elevation in alpha with a valid ELB to fix

The ALB with that name elevation-alpha exists and like I mentioned targetgroup -> elevation-alpha-target-group was set as the parameter. Tried this with and without specifying the elb property, both lead to the same error.

What am I doing wrong? What is a valid ELB?

axelfontaine commented 6 years ago

@lukaswelte targetGroupworks with load-balanced-https apps, not load-balanced

lukaswelte commented 6 years ago

@axelfontaine the type is configure as https in the conf app.type=load-balanced-https

axelfontaine commented 6 years ago

Yes, but you need to recreate the app for that change to take effect.

lukaswelte commented 6 years ago

Ah ok so just to be sure: I can't switch it from one commit to the other just via changing the config, instead I need to delete the app in boxfuse and add it with the new type?

axelfontaine commented 6 years ago

Yes, or create a new one and leave the old one as-is.

lukaswelte commented 6 years ago

Got it, thank you