Last active
May 2, 2023 11:31
-
-
Save sansmoraxz/1c6b4a86f0c410e8d4a0e4cb370a82db to your computer and use it in GitHub Desktop.
Stops the shit spamming from Keda
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: keda.sh/v1alpha1 | |
kind: ScaledObject | |
metadata: | |
name: dummy-scaledobject | |
spec: | |
scaleTargetRef: | |
name: dummy-deployment | |
triggers: | |
- type: cron | |
metadata: | |
timezone: Asia/Kolkata | |
start: 30 * * * * | |
end: 40 * * * * | |
desiredReplicas: "0" | |
--- | |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: dummy-deployment | |
spec: | |
replicas: 0 | |
selector: | |
matchLabels: | |
app: dummy-deployment | |
template: | |
metadata: | |
labels: | |
app: dummy-deployment | |
spec: | |
containers: | |
- name: dummy-deployment | |
image: nginx | |
imagePullPolicy: IfNotPresent | |
ports: | |
- containerPort: 80 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment