flat-insurance-25294
10/01/2020, 6:29 PMbuildAndPushImage
This way I should technically get what I want - where the only “new” thing is the replica count, while the image stays the same.
Depending on how Pulimi does its kubectl
command where the only “new” thing should be the replica count.loud-battery-37784
10/01/2020, 6:33 PMif/else
block and do work.loud-battery-37784
10/01/2020, 6:34 PMflat-insurance-25294
10/01/2020, 6:42 PMreplica
count then that’s the only thing I want to change.
Docker today already has the concept of layer hash. If no layer has changed, then that means no new image is necessary.broad-dog-22463
10/01/2020, 6:50 PMbroad-dog-22463
10/01/2020, 6:50 PMbroad-dog-22463
10/01/2020, 6:51 PMflat-insurance-25294
10/01/2020, 9:00 PMpulumi up
a second time where replica
number has changed, how does it make sure it’s not using a new image when using buildAndPushImage
?broad-dog-22463
10/01/2020, 9:03 PMbroad-dog-22463
10/01/2020, 9:03 PMbroad-dog-22463
10/01/2020, 9:04 PMbroad-dog-22463
10/01/2020, 9:04 PMflat-insurance-25294
10/01/2020, 9:05 PMbranch_names:latest
for everything except master
& develop
With separate repositories for each branch.
develop
and master
branches share the same repository.
develop
will use automated commit sha
as a tag.
master
will use hand selected (manual typed) commit sha
as image tag from the same ECR/Docker repository as develop
.flat-insurance-25294
10/01/2020, 9:10 PMconst image = buildAndPushImage(name: "app:23", pathOrBuild: "./app"): RepositoryImage
or
const image = new RepositoryImage(repository: repo, image: "app:23")
?
if I want to get a specific image
or build it, if it’s missing.broad-dog-22463
10/01/2020, 9:11 PMflat-insurance-25294
10/01/2020, 9:11 PMbroad-dog-22463
10/01/2020, 9:12 PMbroad-dog-22463
10/01/2020, 9:12 PMflat-insurance-25294
10/01/2020, 9:13 PMflat-insurance-25294
10/01/2020, 9:14 PMbroad-dog-22463
10/01/2020, 9:15 PMflat-insurance-25294
10/01/2020, 9:15 PMflat-insurance-25294
10/01/2020, 9:16 PMbroad-dog-22463
10/01/2020, 9:17 PMbroad-dog-22463
10/01/2020, 9:17 PMbroad-dog-22463
10/01/2020, 9:18 PMbroad-dog-22463
10/01/2020, 9:18 PMflat-insurance-25294
10/01/2020, 9:18 PMDeployment/Pod
spec is computed from whatever Pulumi gives us as a result of its awsx/ECR
API.
It is not manually typed by us, we’re relying on the output of
const image = buildAndPushImage(name: "app:23", pathOrBuild: "./app")
To give consistent values so the only change is the replica
count when Pulumi speaks with k8.broad-dog-22463
10/01/2020, 9:18 PMbroad-dog-22463
10/01/2020, 9:19 PM