HarrisKirk / blue-green-dreams

2 stars 1 forks source link

When cluster is created with LoadBalancer, set the IP to the switch backend #90

Open HarrisKirk opened 1 year ago

HarrisKirk commented 1 year ago

Currently, when the cluster is created, the resulting IP is simply logged to the console.
What we want is to link the ingress IP to the nginx backend so requests get routed to the kubernetes service.

See the code that gets the ingress IP here: https://github.com/HarrisKirk/blue-green-dreams/blob/f8a93cf0449830d0bf6cf101e6776e75539905e9/gwa-deploy/bgdctl#L199 I think that IP is what we want to hook up to the nginx backend. But check my thinking.

DONE = a test from the external site will show "Richmond" instead of "Welcome to Nginx" (ie, a full spike through the architectore)

chrissound commented 1 year ago

Working on this now

HarrisKirk commented 1 year ago

I changed the description a little but not the intent of this ticket.

HarrisKirk commented 11 months ago

Make sure to pull the latest commits

chrissound commented 11 months ago

Post discussion:

I'll merge latest from master branch. Test the 'deploy' from master branch first. And then merge my code, and test the 'depoly' once again.

We will create the switch with a hardcoded 'test' environment for this ticket. And then later on when doing the functionality for switching backends, we can refactor the switch creation/test out into possibly another command.

chrissound commented 11 months ago

This should now be completed by #105