HappyTobi / cf-puppeteer

CF-Puppeteer is a zero-downtime deployment plugin bases on autopilot
https://cf-puppeteer.happytobi.com
Apache License 2.0
17 stars 4 forks source link

Network-policy zero-downtime transition possible? #21

Open r-chris opened 4 years ago

r-chris commented 4 years ago

I have deployed nginx as it's own CloudFoundry app to front another web app (as a reverse proxy). I am connecting nginx via the "internal" network-policy to an internal route like this:

cf add-network-policy my-nginx-app --destination-app my-app -s my-space -o my-org --protocol tcp --port 8080

During the zero-downtime deployment of my-app it appears the network-policy is lost and I have to manually recreate it, which results in downtime during deployment.

I am using legacy-push like this:

cf zero-downtime-push -f cf/my-app.yml --legacy-push

To fix it I have to call cf add-network-policy ... again after every deployment.

Is there any way for "cf-puppeteer" to automatically map the internal network policy?