freeleaps-ops/aml-services/helm-pkg/ailab/templates/ailab/vpa.yaml
zhenyus ba442e40c0 chore: remove Jenkinsfile for ailab service
This commit deletes the Jenkinsfile associated with the ailab service as part of a project cleanup.

Signed-off-by: zhenyus <zhenyus@mathmast.com>
2025-07-14 16:31:16 +08:00

32 lines
954 B
YAML

{{- if .Values.ailab.vpa }}
---
apiVersion: autoscaling.k8s.io/v1
kind: VerticalPodAutoscaler
metadata:
name: {{ .Release.Name }}-vpa
namespace: {{ .Release.Namespace }}
spec:
targetRef:
apiVersion: apps/v1
kind: Deployment
name: ailab
resourcePolicy:
containerPolicies:
- containerName: '*'
{{- if .Values.ailab.vpa.minAllowed.enabled }}
minAllowed:
cpu: {{ .Values.ailab.vpa.minAllowed.cpu }}
memory: {{ .Values.ailab.vpa.minAllowed.memory }}
{{- end }}
{{- if .Values.ailab.vpa.maxAllowed.enabled }}
maxAllowed:
cpu: {{ .Values.ailab.vpa.maxAllowed.cpu }}
memory: {{ .Values.ailab.vpa.maxAllowed.memory }}
{{- end }}
{{- if .Values.ailab.vpa.controlledResources }}
controlledResources:
{{- range .Values.ailab.vpa.controlledResources }}
- {{ . }}
{{- end }}
{{- end }}
{{- end }}