Skip to content

feature: moving ALB #144

@katcipis

Description

@katcipis

I was thinking about how to perform blue/green updates that works well with two scenarios that I know we have:

  • the entire old resource group will be removed after update
  • the same resource group will be used, with the old and new cluster inside

So, I thought on something like this:

azure_alb_move(src_resgroup, albname, dst_resgroup, vms_pattern)

The high level steps is:

  • Collect all vms that are currently on the alb
  • Add all vms from $dst_resgroup that matches the given $vms_pattern
  • Remove old vms from alb
  • If $src_resgroup != $dst_resgroup, move alb from src to dst, otherwise do nothing

This way it seems like a good building block for blue/green updates (nothing will be actually removed).

Performing a transition:

azure_alb_move("sourcegroup", "myalb", "destinygroup", "newvms*")

Ooops something went wrong, going back:

azure_alb_move("destinygroup", "myalb", "sourcegroup", "oldvms*")

When using the same resource group it is important to be able to differentiate between different clusters of VMs using a pattern (disambiguation)

Metadata

Metadata

Assignees

No one assigned

    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