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 }}
|