-
Notifications
You must be signed in to change notification settings - Fork 4.1k
/
Copy pathcluster-autoscaler-deployment.yaml
44 lines (44 loc) · 1.26 KB
/
cluster-autoscaler-deployment.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
---
kind: Deployment
apiVersion: apps/v1
metadata:
name: cluster-autoscaler
namespace: kube-system
labels:
app: cluster-autoscaler
spec:
replicas: 1
selector:
matchLabels:
app: cluster-autoscaler
template:
metadata:
namespace: kube-system
labels:
app: cluster-autoscaler
spec:
serviceAccountName: cluster-autoscaler-account
containers:
- name: cluster-autoscaler
image: swr.cn-north-4.myhuaweicloud.com/{Organization name}/cluster-autoscaler:dev
imagePullPolicy: Always
command:
- ./cluster-autoscaler
- --alsologtostderr
- --cloud-config=/config/cloud-config
- --cloud-provider=huaweicloud
- --nodes=1:50:crc-nodepool
- --scale-down-delay-after-add=1m0s
- --scale-down-unneeded-time=1m0s
- --expander=random
- --max-empty-bulk-delete=100
- --max-scale-down-parallelism=100
- --node-deletion-batcher-interval=10s
volumeMounts:
- name: cloud-config
mountPath: /config
readOnly: true
volumes:
- name: cloud-config
secret:
secretName: cluster-autoscaler-cloud-config