This repository has been archived by the owner on Jun 8, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 159
/
scaling-controller.yaml
75 lines (75 loc) · 1.99 KB
/
scaling-controller.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: autoscaler
namespace: system
spec:
replicas: 1
template:
metadata:
labels:
app: autoscaler
openai/do-not-drain: "true"
spec:
containers:
- name: autoscaler
image: quay.io/openai/kubernetes-ec2-autoscaler:azure
env:
- name: AWS_ACCESS_KEY_ID
valueFrom:
secretKeyRef:
name: autoscaler
key: aws-access-key-id
- name: AWS_SECRET_ACCESS_KEY
valueFrom:
secretKeyRef:
name: autoscaler
key: aws-secret-access-key
- name: SLACK_HOOK
valueFrom:
secretKeyRef:
name: autoscaler
key: slack-hook
- name: SLACK_BOT_TOKEN
valueFrom:
secretKeyRef:
name: autoscaler
key: slack-bot-token
- name: DATADOG_API_KEY
valueFrom:
secretKeyRef:
name: autoscaler
key: datadog-api-key
- name: SENTRY_DSN
valueFrom:
secretKeyRef:
name: autoscaler
key: sentry-dsn
- name: PYKUBE_KUBERNETES_SERVICE_HOST
value: 10.100.0.1
# value: kubernetes.default
- name: DATADOG_TAGS
value: env:sci
- name: NAMESPACE
value: system.svc.sci.openai.org
command:
- python
- main.py
- --azure-regions
- us-east,us-south-central
- --aws-regions
- us-west-2,us-east-1,us-west-1
- --cluster-name
- openai-kubernetes
- -vvv
- --type-idle-threshold
- "0"
- --over-provision
- "1"
- --sleep
- "30"
imagePullPolicy: Always
restartPolicy: Always
dnsPolicy: Default # Don't use cluster DNS.
nodeSelector:
aws/region: us-west-2