adventurous-jackal-4538
02/07/2025, 3:21 PMpulumi up
all containers get deleted and then pulumi start creating new ones. This is obviously bad in production, this means my service is instantly down. Instead I want to stop one, create it, stop the next one, craete it, etc.. Now I figured out some way to create the machines gradually by waiting on outputs from each resource and providing it as input to the next, etc. But still all my containers get destroyed at the same time. Next thing I tried is marking the containers retainOnDelete: true
and then add a pulumi Command which deleted the container before creating it. Now the problem is this command doesn't change when the container changes so it is executed only ones. Is there a better way to approach this? Is my line of thinking even in the right direction? How do you do roll out strategies with pulumi when using docker containers or in general?magnificent-eve-10499
02/07/2025, 3:51 PMadventurous-jackal-4538
02/07/2025, 3:54 PMadventurous-jackal-4538
02/07/2025, 4:10 PMmagnificent-eve-10499
02/07/2025, 4:15 PMadventurous-jackal-4538
02/07/2025, 4:17 PMmagnificent-eve-10499
02/07/2025, 4:19 PMmagnificent-eve-10499
02/07/2025, 4:21 PMadventurous-jackal-4538
02/07/2025, 4:28 PMadventurous-jackal-4538
02/07/2025, 4:28 PMadventurous-jackal-4538
02/07/2025, 4:42 PMadventurous-jackal-4538
02/07/2025, 4:44 PMmagnificent-eve-10499
02/07/2025, 4:44 PMadventurous-jackal-4538
02/07/2025, 4:45 PMmagnificent-eve-10499
02/07/2025, 4:45 PMadventurous-jackal-4538
02/07/2025, 4:46 PMadventurous-jackal-4538
02/07/2025, 4:46 PMmagnificent-eve-10499
02/07/2025, 4:49 PMmagnificent-eve-10499
02/07/2025, 4:50 PMadventurous-jackal-4538
02/07/2025, 4:50 PMmagnificent-eve-10499
02/07/2025, 4:55 PMadventurous-jackal-4538
02/07/2025, 4:56 PMadventurous-jackal-4538
02/07/2025, 4:57 PMmagnificent-eve-10499
02/07/2025, 4:59 PMmagnificent-eve-10499
02/07/2025, 5:00 PMadventurous-jackal-4538
02/07/2025, 5:06 PMadventurous-jackal-4538
02/07/2025, 5:07 PMmagnificent-eve-10499
02/07/2025, 5:07 PMadventurous-jackal-4538
02/07/2025, 5:09 PMadventurous-jackal-4538
02/07/2025, 5:09 PMmagnificent-eve-10499
02/07/2025, 5:10 PMmagnificent-eve-10499
02/07/2025, 5:12 PMtrigger
on the container and depend on container. This would cause the healthCheck to run responding with a status that you could then use as a dependency.adventurous-jackal-4538
02/07/2025, 5:15 PMcustomHealthCheck2 dependsOn container2 dependsOn customHealthCheck1 dependsOn container1
won't work meaning that if only container1 and container2 change, the healthchecks won't trigger?magnificent-eve-10499
02/07/2025, 5:22 PMget
the state of some other (untracked) resource in Azure that will give you what you need to know about the status, or use pulumi command to query your endpoint for a status and then act on that.adventurous-jackal-4538
02/07/2025, 5:24 PMmagnificent-eve-10499
02/07/2025, 5:24 PMcurl
that will work both on and of cloud.magnificent-eve-10499
02/07/2025, 5:25 PMadventurous-jackal-4538
02/07/2025, 5:26 PMmagnificent-eve-10499
02/07/2025, 5:26 PMmagnificent-eve-10499
02/07/2025, 5:33 PMlastModifiedAt
changes. So even though the Id of the cert, in my situation, would not have changed it still runs this az
command to make sure that the cert is still bound to the container whenever the cert has been modified. I should probably have this trigger on the lastModifiedAt for the container too because if I lose the bindings because the container gets recreated then this will not fire off.adventurous-jackal-4538
02/07/2025, 5:40 PMadventurous-jackal-4538
02/07/2025, 5:41 PMmagnificent-eve-10499
02/07/2025, 5:41 PMadventurous-jackal-4538
02/07/2025, 5:45 PMadventurous-jackal-4538
02/07/2025, 6:03 PM