Skip to content

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

Notifications You must be signed in to change notification settings

nefelim4ag/k8s-ondemand-proxy

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Packages