mirror of
https://github.com/truenas/charts.git
synced 2026-05-11 11:06:11 +08:00
Add resource limits for applications
This commit is contained in:
@@ -1,6 +0,0 @@
|
||||
dependencies:
|
||||
- name: common
|
||||
repository: file://../../../library/common/2112.0.0
|
||||
version: 2112.0.0
|
||||
digest: sha256:47115d9b91afe42c8537dcf0fd8224f2f7d1c775f9ff860efa68a6b57d17d1c0
|
||||
generated: "2022-06-14T16:04:57.912820777+05:00"
|
||||
Binary file not shown.
6
test/diskoverdata/1.0.3/Chart.lock
Normal file
6
test/diskoverdata/1.0.3/Chart.lock
Normal file
@@ -0,0 +1,6 @@
|
||||
dependencies:
|
||||
- name: common
|
||||
repository: file://../../../library/common/2206.0.0
|
||||
version: 2206.0.0
|
||||
digest: sha256:b5cc6b211cae3adaa3ab8bd5eca73e34c178b11b3daad489e27e0f72190bb115
|
||||
generated: "2022-06-28T00:19:51.566570138+05:00"
|
||||
@@ -3,11 +3,11 @@ appVersion: "2.0.1"
|
||||
icon: http://www.diskoverdata.com/wp-content/uploads/2019/09/diskover.png
|
||||
description: Diskover is used to monitor size/volumes of distributed dataset.
|
||||
name: diskoverdata
|
||||
version: 1.0.2
|
||||
version: 1.0.3
|
||||
dependencies:
|
||||
- name: common
|
||||
repository: file://../../../library/common/2112.0.0
|
||||
version: 2112.0.0
|
||||
repository: file://../../../library/common/2206.0.0
|
||||
version: 2206.0.0
|
||||
home: https://github.com/diskoverdata/diskover-community/
|
||||
keywords:
|
||||
- storage
|
||||
BIN
test/diskoverdata/1.0.3/charts/common-2206.0.0.tgz
Normal file
BIN
test/diskoverdata/1.0.3/charts/common-2206.0.0.tgz
Normal file
Binary file not shown.
@@ -7,6 +7,8 @@ groups:
|
||||
description: "Networking Configuration for Diskover"
|
||||
- name: "Advanced DNS Settings"
|
||||
description: "Configure DNS settings"
|
||||
- name: "Resource Limits"
|
||||
description: "Set CPU/memory limits for Kubernetes Pod"
|
||||
|
||||
portals:
|
||||
web_portal:
|
||||
@@ -293,3 +295,28 @@ questions:
|
||||
type: path
|
||||
editable: false
|
||||
default: "/usr/share/elasticsearch/data"
|
||||
|
||||
- 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"
|
||||
@@ -74,6 +74,7 @@ spec:
|
||||
|
||||
containers:
|
||||
- name: {{ .Chart.Name }}
|
||||
{{ include "common.resources.limitaion" . | nindent 10 }}
|
||||
{{ include "common.containers.imageConfig" .Values.image | nindent 10 }}
|
||||
volumeMounts: {{ include "common.storage.configureAppVolumeMountsInContainer" .Values | nindent 12 }}
|
||||
- name: diskover-initial-scripts
|
||||
Reference in New Issue
Block a user