Skip to content

Instantly share code, notes, and snippets.

@sansmoraxz
Last active May 2, 2023 11:31
Show Gist options
  • Save sansmoraxz/1c6b4a86f0c410e8d4a0e4cb370a82db to your computer and use it in GitHub Desktop.
Save sansmoraxz/1c6b4a86f0c410e8d4a0e4cb370a82db to your computer and use it in GitHub Desktop.
Stops the shit spamming from Keda
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