mirror of
https://github.com/truenas/charts.git
synced 2026-05-16 14:12:59 +08:00
Add resource limits for applications
This commit is contained in:
Binary file not shown.
@@ -1,6 +0,0 @@
|
||||
dependencies:
|
||||
- name: common
|
||||
repository: file://../../../library/common/2112.0.0
|
||||
version: 2112.0.0
|
||||
digest: sha256:47115d9b91afe42c8537dcf0fd8224f2f7d1c775f9ff860efa68a6b57d17d1c0
|
||||
generated: "2021-12-06T21:24:36.62541+05:00"
|
||||
@@ -2,8 +2,8 @@ apiVersion: v1
|
||||
appVersion: v1.35.1
|
||||
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
|
||||
description: Real-time performance monitoring, done right!
|
||||
home: https://www.netdata.cloud/
|
||||
icon: https://netdata.github.io/helmchart/logo.png
|
||||
@@ -16,4 +16,4 @@ sources:
|
||||
- https://github.com/netdata/helmchart
|
||||
- https://github.com/netdata/netdata
|
||||
upstream_version: 3.7.12
|
||||
version: 1.0.7
|
||||
version: 1.0.8
|
||||
BIN
charts/netdata/1.0.8/charts/common-2206.0.0.tgz
Normal file
BIN
charts/netdata/1.0.8/charts/common-2206.0.0.tgz
Normal file
Binary file not shown.
@@ -9,6 +9,8 @@ groups:
|
||||
description: "Configure Storage for Netdata"
|
||||
- name: "Advanced DNS Settings"
|
||||
description: "Configure DNS settings"
|
||||
- name: "Resource Limits"
|
||||
description: "Set CPU/memory limits for Kubernetes Pod"
|
||||
|
||||
portals:
|
||||
web_portal:
|
||||
@@ -224,3 +226,28 @@ questions:
|
||||
schema:
|
||||
type: hostpath
|
||||
required: true
|
||||
|
||||
- variable: enableResourceLimits
|
||||
label: "Enable Pod resource limits"
|
||||
group: "Resource Limits"
|
||||
schema:
|
||||
type: boolean
|
||||
default: false
|
||||
- variable: cpuLimit
|
||||
label: "CPU Limresource limitsit"
|
||||
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"
|
||||
6
charts/netdata/1.0.8/requirements.lock
Normal file
6
charts/netdata/1.0.8/requirements.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.02504434+05:00"
|
||||
@@ -28,6 +28,7 @@ spec:
|
||||
- name: {{ .Chart.Name }}
|
||||
image: "{{ .Values.image.repository }}:{{ tpl .Values.image.tag . }}"
|
||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||
{{ include "common.resources.limitaion" . | nindent 10 }}
|
||||
env:
|
||||
{{ $envList := (default list .Values.environmentVariables) }}
|
||||
{{ include "common.containers.environmentVariables" (dict "environmentVariables" $envList) | nindent 12 }}
|
||||
Reference in New Issue
Block a user