https://pulumi.com logo
f

full-dress-10026

05/31/2019, 8:51 PM
Deploying this:
Copy code
const k8sDashboardChart = new k8s.helm.v2.Chart("k8s-dashboard", {
    repo: "stable",
    chart: "kubernetes-dashboard",
    version: "1.5.2",
    namespace: "kube-system"
}, {providers: {kubernetes: k8sProvider}});
results in
Copy code
error: Plan apply failed: 2 errors occurred:
    	* Timeout occurred for 'k8s-dashboard-kubernetes-dashboard'
    	* Service does not target any Pods. Selected Pods may not be ready, or field '.spec.selector' may not match labels on any Pods
Any idea why this would happen?
i

incalculable-diamond-5088

05/31/2019, 8:54 PM
Are there worker nodes in the cluster?
f

full-dress-10026

05/31/2019, 8:59 PM
Yes
Copy code
kubectl get nodes
NAME                                         STATUS   ROLES    AGE    VERSION
ip-10-213-18-34.us-west-2.compute.internal   Ready    <none>   123m   v1.12.7
ip-10-213-5-19.us-west-2.compute.internal    Ready    <none>   124m   v1.12.7
I can deploy other pods.
This may have to do with deploying into the kube-system namespace?
This seems to be a problem specific to Pulumi. I can't find any k8s resources on this issue.
I don't think Pulumi is respecting the
namespace
property set on the
k8s.helm.v2.Chart
.
h

handsome-actor-1155

05/31/2019, 10:10 PM
FWIW I have tried to use the
namespace
property and it had no effect on which namespace the pods were deployed to
f

full-dress-10026

05/31/2019, 10:10 PM
I assume that's a bug, right?
h

handsome-actor-1155

05/31/2019, 10:12 PM
I’m guessing?
f

full-dress-10026

05/31/2019, 10:27 PM
Wow, most of the issues in the kubernetes repo have to do with namespaces haha.
c

creamy-potato-29402

05/31/2019, 11:50 PM
pulumi is looking at the resources and trying to determine if they’re alive.
it does not look like they’re alive so we error out.
the application step is identical to
kubectl apply
so there is a really high chance that this app is not healthy.
f

full-dress-10026

05/31/2019, 11:51 PM
c

creamy-potato-29402

05/31/2019, 11:52 PM
yes, but are the pods alive?
f

full-dress-10026

05/31/2019, 11:52 PM
I deleted that stack. I can try creating it again.
c

creamy-potato-29402

05/31/2019, 11:53 PM
if the pods are not alive, then it’s not a pulumi bug
f

full-dress-10026

05/31/2019, 11:56 PM
I forget exactly what happened. I'll create the stack again.