bored-barista-23480
02/15/2022, 3:09 PMpulumi destroy
never works, it always hangs on the Ingress resource. Manually deleting the finalizer set on the Ingress by the LBC while destroy
is ongoing works. But even when I explicitly make the Ingress depend on the Helm chart of the LBC the LBC pods get destroyed before the Ingress, and most important: before the finalizer was removed from the Ingress by the LBC. So the destroy-operation always needs manual intervention. Does anyone have an idea what causes this behavior or even how to solve it?incalculable-midnight-8291
02/16/2022, 3:39 PMbored-barista-23480
02/16/2022, 4:30 PMdestroy
operation and using some clever explicitly set dependsOn values.ComponentResource
and thus using them as dependsOn
values has no effect (seems to be something the Pulumi team is working on to solve). That's why the LBC terminates without having the Ingress and AWS resources, and thus the finalizer, removed. The solution is not to pass [helmChart]
as a dependency but helmChart.ready
.incalculable-midnight-8291
02/18/2022, 1:39 PMbored-barista-23480
02/18/2022, 6:56 PMincalculable-midnight-8291
02/23/2022, 2:32 PMnew k8s.helm.v3.Chart
that has dependsOn the cluster somehow? If so, how do I say ready?
Is it something like this?
const cluster = new eks.Cluster(clusterName, {...});
new k8s.helm.v3.Chart('ingress-nginx', {
version: '4.0.17',
chart: 'ingress-nginx',
fetchOpts: {
repo: '<https://kubernetes.github.io/ingress-nginx>',
},
}, {
dependsOn: [cluster],
});