<p>Let's say I have multiple endpoints in my application that are exposed as different Kubernetes services via an ingress controller. </p>

<pre><code>apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  name: test
  annotations:
    nginx.ingress.kubernetes.io/rewrite-target: /
spec:
  rules:
  - host: foo.bar.com
    http:
      paths:
      - path: /service1
        backend:
          serviceName: service1
          servicePort: 80
      - path: /service2
        backend:
          serviceName: service2
          servicePort: 80
</code></pre>

<p>Let us say service2 endpoint does not receive requests for a long time, so a serverless strategy is appropriate for it. Can I configure a Kubernetes ingress controller to dynamically scale service deployments up when a request arrives after a long time to service2 and shut down the pods for service2 when no request arrives for a long time?</p>

iSignal
<p>Nginx ingress can not be used for serverless. You can use <a href="https://knative.dev/docs/" rel="nofollow noreferrer">knative</a> for this use case.</p>
