-
Notifications
You must be signed in to change notification settings - Fork 30
/
deployment-template.yaml
52 lines (52 loc) · 1.26 KB
/
deployment-template.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
40
41
42
43
44
45
46
47
48
49
50
51
52
apiVersion: apps/v1
kind: Deployment
metadata:
name: workerpodautoscaler
namespace: kube-system
labels:
app: workerpodautoscaler
spec:
replicas: 1
selector:
matchLabels:
app: workerpodautoscaler
template:
metadata:
labels:
app: workerpodautoscaler
spec:
serviceAccountName: workerpodautoscaler
tolerations:
- effect: NoExecute
operator: Exists
- effect: NoSchedule
operator: Exists
containers:
- name: wpa
env:
- name: AWS_ACCESS_KEY_ID
value: {{ WPA_AWS_ACCESS_KEY_ID }}
- name: AWS_SECRET_ACCESS_KEY
value: {{ WPA_AWS_SECRET_ACCESS_KEY }}
image: public.ecr.aws/practo/workerpodautoscaler:{{ WPA_TAG }}
imagePullPolicy: Always
command:
- /workerpodautoscaler
- run
- --resync-period=20
- --wpa-threads=10
- --aws-regions={{ WPA_AWS_REGIONS }}
- --sqs-short-poll-interval=20
- --sqs-long-poll-interval=20
- --k8s-api-qps=5.0
- --k8s-api-burst=10
- --wpa-default-max-disruption=100%
- --queue-services=sqs,beanstalkd
- -v=2
resources:
limits:
cpu: 100m
memory: 100Mi
requests:
cpu: 10m
memory: 20Mi