|
@@ -13,6 +13,8 @@ groups:
|
|
|
description: "Configure when pod should be restarted in case of failure"
|
|
|
- name: "Resource Reservation"
|
|
|
description: "Specify resources to be allocated to workload"
|
|
|
+ - name: "Resource Limits"
|
|
|
+ description: "Set CPU/memory limits for Kubernetes Pod"
|
|
|
|
|
|
portals:
|
|
|
web_portal:
|
|
@@ -164,3 +166,28 @@ questions:
|
|
|
schema:
|
|
|
type: boolean
|
|
|
default: false
|
|
|
+
|
|
|
+ - variable: enableResourceLimits
|
|
|
+ label: "Enable Pod resource limits"
|
|
|
+ group: "Resource Limits"
|
|
|
+ schema:
|
|
|
+ type: boolean
|
|
|
+ default: false
|
|
|
+ - variable: cpuLimit
|
|
|
+ label: "CPU Limit"
|
|
|
+ description: "CPU resource limit allow plain integer values with suffix m(milli) e.g 1000m, 100."
|
|
|
+ group: "Resource Limits"
|
|
|
+ schema:
|
|
|
+ type: string
|
|
|
+ show_if: [["enableResourceLimits", "=", true]]
|
|
|
+ valid_chars: "^\\d+(?:\\.\\d+(?!.*m$)|m?$)"
|
|
|
+ default: "4000m"
|
|
|
+ - variable: memLimit
|
|
|
+ label: "Memory Limit"
|
|
|
+ group: "Resource Limits"
|
|
|
+ description: "Memory limits is specified by number of bytes. Followed by quantity suffix like E,P,T,G,M,k and Ei,Pi,Ti,Mi,Gi,Ki can also be used. e.g 129e6, 129M, 128974848000m, 123Mi"
|
|
|
+ schema:
|
|
|
+ type: string
|
|
|
+ show_if: [["enableResourceLimits", "=", true]]
|
|
|
+ valid_chars: "^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$"
|
|
|
+ default: "8Gi"
|