You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This example is based on the official Keda [example](https://keda.sh/docs/2.18/scalers/cron/#scale-to-0-during-off-hours).
4
+
5
+
## 1. Deploy the Ingress Controller
6
+
7
+
1. Follow the [installation](https://docs.nginx.com/nginx-ingress-controller/installation/installation-with-manifests/)
8
+
instructions to deploy the Ingress Controller.
9
+
10
+
## 2. Deploy Keda
11
+
12
+
1. Follow the [installation](https://keda.sh/docs/2.18/deploy/) instructions to suit your deployment preference.
13
+
14
+
## 3. Apply the Keda ScaledObject
15
+
16
+
Adjust the setting to suit your requirements. See the [ScaledObject](https://keda.sh/docs/2.18/reference/scaledobject-spec/) reference for more details
17
+
18
+
1. Apply `scaled-object.yaml`
19
+
20
+
```console
21
+
kubectl apply -f scaled-object.yaml
22
+
```
23
+
24
+
## 4. Configure deployment replicas
25
+
26
+
1. Remove the `spec.replicas` from your deployment to allow Keda to autoscale your pods.
27
+
28
+
2. Once the end time has expired, 5 minutes from then the NGINX Ingress Controller pods should scale to 0.
0 commit comments