Nikolai Rodionov
aabcb21f3b
Basic functionality is there, helmule can mirror helm chart with small modifications
28 lines
757 B
YAML
28 lines
757 B
YAML
{{ if eq (include "resource.vpa.enabled" .) "true" }}
|
|
apiVersion: autoscaling.k8s.io/v1
|
|
kind: VerticalPodAutoscaler
|
|
metadata:
|
|
name: gitops-server
|
|
namespace: {{ .Release.Namespace }}
|
|
labels:
|
|
{{- include "chart.labels" . | nindent 4 }}
|
|
spec:
|
|
resourcePolicy:
|
|
containerPolicies:
|
|
- containerName: {{ .Chart.Name }}
|
|
controlledValues: RequestsAndLimits
|
|
minAllowed:
|
|
cpu: {{ .Values.giantswarm.resources.server.requests.cpu }}
|
|
memory: {{ .Values.giantswarm.resources.server.requests.memory }}
|
|
maxAllowed:
|
|
cpu: 1000m
|
|
memory: 1000Mi
|
|
mode: Auto
|
|
targetRef:
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
name: {{ include "chart.fullname" . }}
|
|
updatePolicy:
|
|
updateMode: Auto
|
|
{{ end }}
|