feature: added limitrange object support
This commit is contained in:
10
charts/py-app/templates/limitrange.yaml
Normal file
10
charts/py-app/templates/limitrange.yaml
Normal 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 -}}
|
@ -126,4 +126,13 @@ autoscaling:
|
||||
targetCPUUtilizationPercentage: 80
|
||||
# targetMemoryUtilizationPercentage: 80
|
||||
|
||||
limitRange:
|
||||
create: false
|
||||
# limits:
|
||||
# - default:
|
||||
# memory: 700Mi
|
||||
# defaultRequest:
|
||||
# cpu: 50m
|
||||
# memory: 500Mi
|
||||
# type: Container
|
||||
extraManifests: []
|
Reference in New Issue
Block a user