https://pulumi.com logo
#kubernetes
Title
# kubernetes
r

rough-tomato-98795

10/12/2020, 9:05 AM
Is there a way how to tell pulumi do delete pods with some flags? An app have kinda long grafecul period. Which results into pulumi failing to delete that pod. But in that case we are sure we want to delete that pod immediately without that graceful shutdown. (--grace-period=0 --force)
g

green-school-95910

10/12/2020, 1:17 PM
Maybe this?
r

rough-tomato-98795

10/13/2020, 6:15 AM
Can work for some cases. But it overrides default grace period for pod imo.? So even when let's say azure wants to restart node. It will not wait longer then value set in this field. Which could break the logic. I only wants to break that default grace period when i am sure i want to delete all the pods in deployment/statefulset.
g

green-school-95910

10/13/2020, 12:36 PM
Indeed, Pulumi will do the exact same, if you have a problem on a pod that needs to be immediately terminated you can do that from
kubectl
Pulumi will just compare the golden state of its resource graph and apply the difference. The "lack" of something do not have any properties, so all the behavior of how to delete something must already be set from the previous deployment.
4 Views