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

chilly-night-36370

03/20/2021, 2:12 PM
Can anyone give my an idea how to debug this error message. I'm trying to deploy
kube-prometheus-stack
from
<https://prometheus-community.github.io/helm-charts>
. I get the same error for a few of the resources
Copy code
error: 2 errors occurred:
        * the Kubernetes API server reported that "kube-system/kube-prometheus-stack-kube-controller-manager" failed to fully initialize or become live: 'kube-prometheus-stack-kube-controller-manager' timed out waiting to be Ready
        * Service does not target any Pods. Selected Pods may not be ready, or field '.spec.selector' may not match labels on any Pods
Here is the code
w

white-balloon-205

03/22/2021, 5:45 AM
Pulumi waits for services to become ready, and it sounds like one of your services never initialized correctly. You likely want to look at the status of the pods targeted by the selector mentioned in the error message to see why those pods aren’t starting up correctly (they may be crash-looping, or there may not be nodes available for them to run on). If you want to allow them to fail, but still have the Pulumi deployment succeed, you can use skipAwait: https://www.pulumi.com/blog/improving-kubernetes-management-with-pulumis-await-logic/
c

chilly-night-36370

03/22/2021, 6:53 AM
The problem is that none of those pods targeted exist. I think Pulumi is incorrectly calculating resource graph for this chart. The services exist but the pods don't and thus Pulumi just waits endlessly. This happens for all of there services in the screenshot. I can try to add the skipAwait to each of these services
15 Views