Skip to content

Commit

Permalink
Adapt extension Deployment's VPA
Browse files Browse the repository at this point in the history
  • Loading branch information
ialidzhikov authored and nickytd committed Jun 30, 2024
1 parent 851a6d6 commit 695e918
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions charts/oidc-apps-controller/templates/vpa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ spec:
resourcePolicy:
containerPolicies:
- containerName: {{ $.Chart.Name }}
controlledResources:
- cpu
- memory
{{- with .Values.vpa.minAllowed }}
minAllowed: {{ toYaml . | nindent 10 }}
{{- end }}
{{- with .Values.vpa.maxAllowed }}
maxAllowed: {{ toYaml . | nindent 10 }}
{{- end }}
{{- if .Values.vpa.controlledValues }}
controlledValues: {{ .Values.vpa.controlledValues }}
{{- end }}
{{- end }}
12 changes: 6 additions & 6 deletions charts/oidc-apps-controller/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,18 +72,18 @@ priorityClass:
# name: oidc-apps-controller

vpa:
enabled: false
# updatePolicy:
# updateMode: "Auto"
enabled: true
updatePolicy:
updateMode: "Auto"
# evictionRequirements:
# - resources: ["cpu", "memory"]
# changeRequirement: TargetHigherThanRequests
# minAllowed:
# cpu: 50m
# memory: 64Mi
minAllowed:
memory: 20Mi
# maxAllowed:
# cpu: 200m
# memory: 256Mi
controlledValues: RequestsOnly

nodeSelector: {}
tolerations: []
Expand Down
Loading

0 comments on commit 695e918

Please sign in to comment.