diff --git a/charts/py-app/templates/limitrange.yaml b/charts/py-app/templates/limitrange.yaml new file mode 100644 index 0000000..6bbf14b --- /dev/null +++ b/charts/py-app/templates/limitrange.yaml @@ -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 -}} \ No newline at end of file diff --git a/charts/py-app/values.yaml b/charts/py-app/values.yaml index a840187..25083fb 100644 --- a/charts/py-app/values.yaml +++ b/charts/py-app/values.yaml @@ -126,4 +126,13 @@ autoscaling: targetCPUUtilizationPercentage: 80 # targetMemoryUtilizationPercentage: 80 +limitRange: + create: false + # limits: + # - default: + # memory: 700Mi + # defaultRequest: + # cpu: 50m + # memory: 500Mi + # type: Container extraManifests: [] \ No newline at end of file