stocky-island-3676
10/08/2019, 8:23 AMimage
of a Kubernetes Deployment is not displayed as a change with pulumi up --refresh
. I changed it directly with kubectl edit
.
The details view of pulumi up
shows that the image
will be refreshed in the stack, though.
What do I do wrong?
(The code is from pulumi new kubernetes-typescript
with fixed image
& minikube
provider.)kubectl edit deploy nginx-...
& change to image: nginx:1.16.1-alpine
v1.2.0
thousands-angle-40305
10/15/2019, 3:19 PMfuture-barista-68134
10/15/2019, 3:22 PMstocky-island-3676
10/15/2019, 3:27 PMkube-prometheus
which has many K8s resources.refresh
stage (either pulumi refresh
or pulumi up --refresh
).
But I don’t see that pulumi up
doesn’t want to change the image back to what’s defined in the code, i.e. nginx:1.6.1
.@microscopic-florist-22719 indicated that this is expected behavior with legacy diff because the kubectl scale command apparently doesn’t set theThe solution is to use the new Kubernetes provider optionannotation.<http://kubectl.kubernetes.io/last-applied-configuration|kubectl.kubernetes.io/last-applied-configuration>
enableDryRun: true
(hint: there may be stability issues with it as mentioned in the Github issue).future-barista-68134
10/21/2019, 5:51 PMstocky-island-3676
10/26/2019, 10:38 AMenableDryRun
seems fine for now. Didn’t use it in bigger projects, yet. Currently working on other things.
Sorry for the late answer. Just realized that I don’t get any notification from threads. Best is you always @mention me. Then it’s sure I’ll receive a notification.