@@ -16,27 +16,26 @@ spec:
16
16
app : ${CLUSTER_NAME}-cluster-autoscaler
17
17
spec :
18
18
containers :
19
- - image : registry.k8s.io/autoscaling/cluster-autoscaler:${CLUSTER_AUTOSCALER_VERSION}
20
- name : cluster-autoscaler
21
- command :
22
- - /cluster-autoscaler
23
- args :
24
- - --cloud-provider=clusterapi
25
- - --kubeconfig=/mnt/kubeconfig/value
26
- - --clusterapi-cloud-config-authoritative
27
- - --node-group-auto-discovery=clusterapi:namespace=${NAMESPACE},clusterName=${CLUSTER_NAME}
28
- # See: https://github.com/kubernetes/autoscaler/blob/master/cluster-autoscaler/FAQ.md#my-cluster-is-below-minimum--above-maximum-number-of-nodes-but-ca-did-not-fix-that-why
29
- - --enforce-node-group-min-size
30
- volumeMounts :
31
- - name : kubeconfig
32
- readOnly : true
33
- mountPath : /mnt/kubeconfig/
19
+ - image : registry.k8s.io/autoscaling/cluster-autoscaler:${CLUSTER_AUTOSCALER_VERSION}
20
+ name : cluster-autoscaler
21
+ command : [/cluster-autoscaler]
22
+ args :
23
+ - --cloud-provider=clusterapi
24
+ - --kubeconfig=/mnt/kubeconfig/value
25
+ - --clusterapi-cloud-config-authoritative
26
+ - --node-group-auto-discovery=clusterapi:namespace=${NAMESPACE},clusterName=${CLUSTER_NAME}
27
+ # See: https://github.com/kubernetes/autoscaler/blob/master/cluster-autoscaler/FAQ.md#my-cluster-is-below-minimum--above-maximum-number-of-nodes-but-ca-did-not-fix-that-why
28
+ - --enforce-node-group-min-size
29
+ volumeMounts :
30
+ - name : kubeconfig
31
+ readOnly : true
32
+ mountPath : /mnt/kubeconfig/
34
33
serviceAccountName : ${CLUSTER_NAME}-cluster-autoscaler
35
34
terminationGracePeriodSeconds : 10
36
35
volumes :
37
- - name : kubeconfig
38
- secret :
39
- secretName : ${CLUSTER_NAME}-kubeconfig
36
+ - name : kubeconfig
37
+ secret :
38
+ secretName : ${CLUSTER_NAME}-kubeconfig
40
39
---
41
40
kind : RoleBinding
42
41
apiVersion : rbac.authorization.k8s.io/v1
@@ -47,8 +46,8 @@ roleRef:
47
46
kind : Role
48
47
name : ${CLUSTER_NAME}-cluster-autoscaler
49
48
subjects :
50
- - kind : ServiceAccount
51
- name : ${CLUSTER_NAME}-cluster-autoscaler
49
+ - kind : ServiceAccount
50
+ name : ${CLUSTER_NAME}-cluster-autoscaler
52
51
---
53
52
apiVersion : v1
54
53
kind : ServiceAccount
@@ -60,19 +59,13 @@ apiVersion: rbac.authorization.k8s.io/v1
60
59
metadata :
61
60
name : ${CLUSTER_NAME}-cluster-autoscaler
62
61
rules :
63
- - apiGroups :
64
- - cluster.x-k8s.io
65
- - infrastructure.cluster.x-k8s.io
66
- resources :
67
- - machinedeployments
68
- - machinedeployments/scale
69
- - machines
70
- - machinesets
71
- - machinepools
72
- - linodemachinetemplates
73
- - linodemachines
74
- verbs :
75
- - get
76
- - list
77
- - update
78
- - watch
62
+ - apiGroups : [cluster.x-k8s.io, infrastructure.cluster.x-k8s.io]
63
+ resources :
64
+ - machinedeployments
65
+ - machinedeployments/scale
66
+ - machines
67
+ - machinesets
68
+ - machinepools
69
+ - linodemachinetemplates
70
+ - linodemachines
71
+ verbs : [get, list, update, watch]
0 commit comments