Improve cluster autoscaler default config (#254)
This commit is contained in:
parent
e90f7b8670
commit
d66b8a4455
@ -32,6 +32,9 @@ spec:
|
|||||||
- --kubeconfig=/mnt/kubeconfig/value
|
- --kubeconfig=/mnt/kubeconfig/value
|
||||||
- --clusterapi-cloud-config-authoritative
|
- --clusterapi-cloud-config-authoritative
|
||||||
- --node-group-auto-discovery=clusterapi:namespace={{ .Release.Namespace }},clusterName={{ include "openstack-cluster.clusterName" . }}
|
- --node-group-auto-discovery=clusterapi:namespace={{ .Release.Namespace }},clusterName={{ include "openstack-cluster.clusterName" . }}
|
||||||
|
{{- range $key, $value := .Values.autoscaler.extraArgs }}
|
||||||
|
- --{{ $key }}={{ $value }}
|
||||||
|
{{- end }}
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
path: /health-check
|
path: /health-check
|
||||||
|
@ -8,7 +8,6 @@ rules:
|
|||||||
- cluster.x-k8s.io
|
- cluster.x-k8s.io
|
||||||
resources:
|
resources:
|
||||||
- machinedeployments
|
- machinedeployments
|
||||||
- machinedeployments/scale
|
|
||||||
- machines
|
- machines
|
||||||
- machinesets
|
- machinesets
|
||||||
verbs:
|
verbs:
|
||||||
@ -16,3 +15,11 @@ rules:
|
|||||||
- list
|
- list
|
||||||
- update
|
- update
|
||||||
- watch
|
- watch
|
||||||
|
- apiGroups:
|
||||||
|
- cluster.x-k8s.io
|
||||||
|
resources:
|
||||||
|
- machinedeployments/scale
|
||||||
|
verbs:
|
||||||
|
- get
|
||||||
|
- patch
|
||||||
|
- update
|
||||||
|
@ -416,14 +416,28 @@ nodeGroups:
|
|||||||
autoscaler:
|
autoscaler:
|
||||||
# The image to use for the autoscaler component
|
# The image to use for the autoscaler component
|
||||||
image:
|
image:
|
||||||
# Defaults to the global image prefix if not given
|
|
||||||
prefix:
|
|
||||||
repository: registry.k8s.io/autoscaling/cluster-autoscaler
|
repository: registry.k8s.io/autoscaling/cluster-autoscaler
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
# The cluster-autoscaler docs recommend using a version that matches the
|
tag: v1.29.0
|
||||||
# Kubernetes version, but versions should be (mostly) backwards-compatible
|
|
||||||
tag: v1.26.1
|
|
||||||
imagePullSecrets: []
|
imagePullSecrets: []
|
||||||
|
# Any extra args for the autoscaler
|
||||||
|
extraArgs:
|
||||||
|
# Make sure logs go to stderr
|
||||||
|
logtostderr: true
|
||||||
|
stderrthreshold: info
|
||||||
|
# Output at a decent log level
|
||||||
|
v: 4
|
||||||
|
# Cordon nodes before terminating them so new pods are not scheduled there
|
||||||
|
cordon-node-before-terminating: "true"
|
||||||
|
# When scaling up, choose the node group that will result in the least idle CPU after
|
||||||
|
expander: least-waste,random
|
||||||
|
# Allow pods in kube-system to prevent a node from being deleted
|
||||||
|
skip-nodes-with-system-pods: "true"
|
||||||
|
# Allow pods with emptyDirs to be evicted
|
||||||
|
skip-nodes-with-local-storage: "false"
|
||||||
|
# Allow pods with custom controllers to be evicted
|
||||||
|
skip-nodes-with-custom-controller-pods: "false"
|
||||||
|
|
||||||
# Pod-level security context
|
# Pod-level security context
|
||||||
podSecurityContext:
|
podSecurityContext:
|
||||||
runAsNonRoot: true
|
runAsNonRoot: true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user