https://pulumi.com logo
#general
Title
# general
b

busy-umbrella-36067

11/14/2018, 3:15 PM
on the kubernetes provider, is pulumi able to wait until a
StatefulSet
or
Deployment
has the disired amount of pods? This is from an old workflow, runs after the k8s resources have been applied, makes sure that the containers start up successfully and pass their readiness Checks
Copy code
kubectl rollout status statefulset <NAME>
g

gorgeous-egg-16927

11/14/2018, 5:02 PM
@busy-umbrella-36067 Pulumi should track Pods for Deployment, but StatefulSet hasn't been implemented yet. I'm working on that right now, and progress is being tracked at https://github.com/pulumi/pulumi-kubernetes/issues/93
b

busy-umbrella-36067

11/14/2018, 5:03 PM
could that possibly be toggled on/off somehow? I do have some
StatefulSets
that take 8+ hours to pass health checks. Maybe even allow a custom timeout on individual resource creation
g

gorgeous-egg-16927

11/14/2018, 5:10 PM
Could you open an issue with some more details on what you'd need? In general, I think the expectation is that a Deployment/StatefulSet wouldn't be "ready" until any defined readiness/liveness checks were healthy
c

creamy-potato-29402

11/14/2018, 5:21 PM
We could accommodate this with annotations
But yes I agree
Man 8 hours that's a long time for rollout
b

busy-umbrella-36067

11/14/2018, 6:49 PM
awful stateful app that needs 240GB of ingest data before it starts serving requests 🤮
c

creamy-potato-29402

11/14/2018, 6:51 PM
holy cow
b

busy-umbrella-36067

11/14/2018, 6:52 PM
yeah imagine 50 of them, all forked off the same shitty code
20 nodes per replica
c

creamy-potato-29402

11/14/2018, 6:52 PM
🤭
oh my
b

busy-umbrella-36067

11/14/2018, 6:53 PM
Currently over 400 EBS volumes attached to my k8s clusters lol
oh well, at least theres pulumi. Doing this with anything else would be a nightmare
c

creamy-potato-29402

11/14/2018, 7:01 PM
@busy-umbrella-36067 this is incredible
you should give a talk about this somewhere
We should think about how we can make this experience better for you…
b

busy-umbrella-36067

11/14/2018, 7:09 PM
I might do something on making easy custom state machines (fed via YAML) with Pulumi. I can’t really share much specifics about the current work.
2 Views