daemonset that relies on kube-dns fails because managednodegroup failed to create #2372
Labels
customer/feedback
Feedback from customers
kind/bug
Some behavior is incorrect or out of spec
resolution/fixed
This issue was fixed
Milestone
What happened?
When creating a new daemonset called node-local-dns, which relies on the kube-dns created by the core-dns. I have noticed that if I create the daemonset on an existing cluster, everything works smoothly. However, if I attempt to create a new cluster, the provision fails with the following error message:
Further investigation revealed that the ManagedNodeGroup failed to create, resulting in no pods running. In our code, the ManagedNodeGroup is dependent on the control_plane object, which creates the core-dns/kube-dns
The following was added:
pulumi.com/skipAwait](http://pulumi.com/skipAwait): "true"
as annotation in the serviceWithout the annotation, error message was like below. As you can see pulumi complained about 3 services
node-local-dns
,kube-dns-upstream
andkube-dns
.node-local-dns
,kube-dns-upstream
are part ofnode-local-dns
,whilekube-dns
is part ofcore-dns
Error:
after added the annotation to
kube-dns-upstream
andnode-local-dns
, the error message only complains aboutkube-dns
, which also has the annotation configured.Error:
I didn't use
dependsOn
, instead I retrieve the service, and use apply to configure some values of another resource with the service's cluster_ipCode:
Feels like this is the issue? https://github.com/pulumi/pulumi-kubernetes/blob/master/provider/pkg/provider/provider.go#L2009-L2053
More specifically here: https://github.com/pulumi/pulumi-kubernetes/blob/master/provider/pkg/await/await.go#L310
This only skips await logic based on inputs, and these aren't inputs when you're using .get
Expected Behavior
We expect the skipAwait annotation to resolve that. The provider is explicitly checking for an annotation value of "true".
Steps to reproduce
TBD
Output of
pulumi about
tbd
Additional context
No response
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).
The text was updated successfully, but these errors were encountered: