is there a way to do a thing after a kubernetes de...
# general
b
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
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')});