mirror of
https://github.com/kata-containers/kata-containers.git
synced 2026-04-10 22:12:35 +00:00
Merge pull request #12752 from LizZhang315/add-overheadEnabled
helm: add overheadEnabled switch for runtimeclass
This commit is contained in:
@@ -26,10 +26,22 @@ handler: kata-{{ .shim }}-{{ .root.Values.env.multiInstallSuffix }}
|
||||
{{- else }}
|
||||
handler: kata-{{ .shim }}
|
||||
{{- end }}
|
||||
{{- /* Overhead section - controlled by global or per-shim overheadEnabled flag (default: true) */ -}}
|
||||
{{- $shimOverheadEnabled := true -}}
|
||||
{{- if hasKey .root.Values.runtimeClasses "overheadEnabled" -}}
|
||||
{{- $shimOverheadEnabled = .root.Values.runtimeClasses.overheadEnabled -}}
|
||||
{{- end -}}
|
||||
{{- with .shimConfig.runtimeClass -}}
|
||||
{{- if hasKey . "overheadEnabled" -}}
|
||||
{{- $shimOverheadEnabled = .overheadEnabled -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{- if $shimOverheadEnabled }}
|
||||
overhead:
|
||||
podFixed:
|
||||
memory: {{ .config.memory | quote }}
|
||||
cpu: {{ .config.cpu | quote }}
|
||||
{{- end }}
|
||||
scheduling:
|
||||
nodeSelector:
|
||||
katacontainers.io/kata-runtime: "true"
|
||||
|
||||
@@ -69,6 +69,7 @@ snapshotter:
|
||||
# runtimeClass:
|
||||
# nodeSelector: # extra node selectors added to the RuntimeClass
|
||||
# example.io/feature: "true"
|
||||
# overheadEnabled: true # enable/disable overhead in RuntimeClass (default: inherits from runtimeClasses.overheadEnabled)
|
||||
# overhead: # override pod overhead (falls back to built-in defaults)
|
||||
# memory: "160Mi"
|
||||
# cpu: "250m"
|
||||
@@ -344,6 +345,10 @@ runtimeClasses:
|
||||
enabled: true
|
||||
createDefault: false
|
||||
defaultName: "kata"
|
||||
# Global switch for overhead in all RuntimeClasses (default: true)
|
||||
# Set to false to disable overhead for all shims globally.
|
||||
# Individual shims can override this via shims.<name>.runtimeClass.overheadEnabled
|
||||
overheadEnabled: true
|
||||
|
||||
env:
|
||||
installationPrefix: ""
|
||||
|
||||
Reference in New Issue
Block a user