-
Notifications
You must be signed in to change notification settings - Fork 2
/
example.yaml
39 lines (39 loc) · 912 Bytes
/
example.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
apiVersion: batch/v1beta1
kind: CronJob
metadata:
labels:
app: stakater-scaler
name: stakater-scaler
namespace: global
spec:
schedule: 25 12 * * *
jobTemplate:
metadata:
labels:
app: stakater-scaler
spec:
template:
metadata:
labels:
app: stakater-scaler
spec:
restartPolicy: Never
containers:
- args:
- --roleArn
- arn:aws:iam::account-id:role/scaler-role
- --region
- us-west-2
- --max
- "1"
- --min
- "1"
- --desired
- "1"
- --provider
- aws
- --scalerName
- nodes.stackator.com
image: docker.io/stakater/scaler:0.0.1
imagePullPolicy: IfNotPresent
name: stakater-scaler