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

bitter-dentist-28132

01/28/2020, 2:29 PM
is there a way to do a thing after a kubernetes deployment has successfully deployed? e.g. make http requests against the now-up server?
g

gorgeous-egg-16927

01/28/2020, 4:24 PM
This example is a bit complicated, but should point you in the right direction: https://github.com/pulumi/examples/tree/master/kubernetes-ts-staged-rollout-with-prometheus
Oh, actually that example is more for making http requests as a condition of readiness. If you just need to run something after a successful deployment, you should be able to run that logic inside an
apply
. e.g.
Copy code
const deployment = new k8s.apps.v1.Deployment(...);
deployment.status.apply(s => {console.log('Do some stuff')});