feature: added limitrange object support

This commit is contained in:
Dev Jadeja
2025-02-11 20:39:53 +05:30
parent 2a1be9740e
commit e412a20dd6
2 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,10 @@
{{- if .Values.limitRange.create }}
apiVersion: v1
kind: LimitRange
metadata:
name: {{ include "py-app.fullname" . }}
labels:
{{- include "py-app.labels" . | nindent 4 }}
spec:
limits: {{ .Values.limitRange.limits | toYaml | nindent 2 }}
{{- end -}}

View File

@ -126,4 +126,13 @@ autoscaling:
targetCPUUtilizationPercentage: 80 targetCPUUtilizationPercentage: 80
# targetMemoryUtilizationPercentage: 80 # targetMemoryUtilizationPercentage: 80
limitRange:
create: false
# limits:
# - default:
# memory: 700Mi
# defaultRequest:
# cpu: 50m
# memory: 500Mi
# type: Container
extraManifests: [] extraManifests: []