- Added debug mode, structured ConfigMap pattern, and README to all charts - Migrated all flat-structure charts to hierarchical values under chartname key - Fixed templates to use correct hierarchical paths - Renamed helm-rustical key to rustical, added HPA support - Fixed ingress YAML parsing (oxicloud), nested env vars (rustical) - Pushed all normalized charts to OCI registry as 1.0.0+ and updated ArgoCD apps
36 lines
1.2 KiB
YAML
36 lines
1.2 KiB
YAML
{{- if .Values.rustical.autoscaling.enabled }}
|
|
apiVersion: autoscaling/v2
|
|
kind: HorizontalPodAutoscaler
|
|
metadata:
|
|
name: {{ include "rustical.fullname" . }}
|
|
labels:
|
|
{{- include "rustical.labels" . | nindent 4 }}
|
|
spec:
|
|
scaleTargetRef:
|
|
apiVersion: apps/v1
|
|
kind: StatefulSet
|
|
name: {{ include "rustical.fullname" . }}
|
|
{{- if .Values.rustical.autoscaling.minReplicas }}
|
|
minReplicas: {{ .Values.rustical.autoscaling.minReplicas }}
|
|
{{- end }}
|
|
{{- if .Values.rustical.autoscaling.maxReplicas }}
|
|
maxReplicas: {{ .Values.rustical.autoscaling.maxReplicas }}
|
|
{{- end }}
|
|
metrics:
|
|
{{- if .Values.rustical.autoscaling.targetCPUUtilizationPercentage }}
|
|
- type: Resource
|
|
resource:
|
|
name: cpu
|
|
target:
|
|
type: Utilization
|
|
averageUtilization: {{ .Values.rustical.autoscaling.targetCPUUtilizationPercentage }}
|
|
{{- end }}
|
|
{{- if .Values.rustical.autoscaling.targetMemoryUtilizationPercentage }}
|
|
- type: Resource
|
|
resource:
|
|
name: memory
|
|
target:
|
|
type: Utilization
|
|
averageUtilization: {{ .Values.rustical.autoscaling.targetMemoryUtilizationPercentage }}
|
|
{{- end }}
|
|
{{- end }}
|