Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions charts/t8s-cluster/templates/management-cluster/autoscaler.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{{- $enabled := false -}}
{{- range $_, $machineDeploymentClass := .Values.nodePools }}
{{- with $machineDeploymentClass.replicas }}
{{- $enabled = or $enabled (kindIs "map" .) -}}
{{- end }}
{{- end }}
{{- if $enabled -}}
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: {{ printf "%s-autoscaler" .Release.Name }}
namespace: {{ .Release.Namespace }}
labels: {{- include "common.labels.standard" . | nindent 4 }}
spec:
chart:
spec: {{- include "common.helm.chartSpec" (dict "repo" "autoscaler" "repoNamespace" "flux-system" "chart" "cluster-autoscaler" "context" $) | nindent 6 }}
interval: 1h
driftDetection:
mode: enabled
values:
autoDiscovery:
clusterName: {{ .Release.Name }}
cloudProvider: clusterapi
# workload-management
clusterAPIMode: kubeconfig-incluster
clusterAPIConfigMapsNamespace: {{ .Release.Namespace }}
clusterAPIKubeconfigSecret: {{ .Release.Name }}-kubeconfig
extraArgs:
scale-down-utilization-threshold: 0.8
Comment thread
cwrau marked this conversation as resolved.
leader-elect-resource-name: {{ .Release.Name }}-cluster-autoscaler
status-config-map-name: {{ .Release.Name }}-cluster-autoscaler
serviceMonitor:
enabled: true
namespace: {{ .Release.Namespace }}
{{- end -}}

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

4 changes: 4 additions & 0 deletions charts/t8s-cluster/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ global:
openstack-cinder-csi 2.29.x: 2.29.2
openstack-cinder-csi 2.28.x: 2.28.3
openstack-cinder-csi 2.27.x: 2.27.3
autoscaler:
url: https://kubernetes.github.io/autoscaler
charts:
cluster-autoscaler: 9.52.1
cetic:
url: https://cetic.github.io/helm-charts
etcd:
Expand Down