Skip to content

Latest commit

 

History

History
23 lines (15 loc) · 770 Bytes

README.md

File metadata and controls

23 lines (15 loc) · 770 Bytes

k8s-ondemand-proxy

Simple TCP proxy app that will scale from zero Deployment/StatefulSet in case of external requests and scale down when no traffic

The basic idea from knative scaling to zero.

How it works

Very similar to Knative but dead simple

Ingress -> ondemand-proxy -> service -> pod
# OR
App -> ondemand-proxy -> service -> pod

When a connection comes to ondemand-proxy, it holds it up, while in the background starts to scale the target app. When the target app is ready, traffic will be proxied. When no traffic comes to the proxy in an idle period, 15 minutes by default, the proxied app will be scaled to 0.

Example asciicast