mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-06-22 14:32:35 +00:00
🔨 Separate the resources of each container in worker DaemonSet
This commit is contained in:
parent
e1106e25c4
commit
6add6fb1ec
@ -34,8 +34,8 @@ const (
|
|||||||
)
|
)
|
||||||
|
|
||||||
type ResourceLimits struct {
|
type ResourceLimits struct {
|
||||||
CPU string `yaml:"cpu" json:"cpu" default:"750m"`
|
CPU string `yaml:"cpu" json:"cpu" default:"500m"`
|
||||||
Memory string `yaml:"memory" json:"memory" default:"1Gi"`
|
Memory string `yaml:"memory" json:"memory" default:"500Mi"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type ResourceRequests struct {
|
type ResourceRequests struct {
|
||||||
@ -76,8 +76,10 @@ type DockerConfig struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type ResourcesConfig struct {
|
type ResourcesConfig struct {
|
||||||
Worker ResourceRequirements `yaml:"worker" json:"worker"`
|
Sniffer ResourceRequirements `yaml:"sniffer" json:"sniffer"`
|
||||||
Hub ResourceRequirements `yaml:"hub" json:"hub"`
|
Server ResourceRequirements `yaml:"server" json:"server"`
|
||||||
|
Tracer ResourceRequirements `yaml:"tracer" json:"tracer"`
|
||||||
|
Hub ResourceRequirements `yaml:"hub" json:"hub"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type AuthConfig struct {
|
type AuthConfig struct {
|
||||||
|
@ -60,11 +60,11 @@ spec:
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
cpu: {{ .Values.tap.resources.worker.limits.cpu }}
|
cpu: {{ .Values.tap.resources.sniffer.limits.cpu }}
|
||||||
memory: {{ .Values.tap.resources.worker.limits.memory }}
|
memory: {{ .Values.tap.resources.sniffer.limits.memory }}
|
||||||
requests:
|
requests:
|
||||||
cpu: {{ .Values.tap.resources.worker.requests.cpu }}
|
cpu: {{ .Values.tap.resources.sniffer.requests.cpu }}
|
||||||
memory: {{ .Values.tap.resources.worker.requests.memory }}
|
memory: {{ .Values.tap.resources.sniffer.requests.memory }}
|
||||||
securityContext:
|
securityContext:
|
||||||
capabilities:
|
capabilities:
|
||||||
add:
|
add:
|
||||||
@ -117,11 +117,11 @@ spec:
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
cpu: {{ .Values.tap.resources.worker.limits.cpu }}
|
cpu: {{ .Values.tap.resources.server.limits.cpu }}
|
||||||
memory: {{ .Values.tap.resources.worker.limits.memory }}
|
memory: {{ .Values.tap.resources.server.limits.memory }}
|
||||||
requests:
|
requests:
|
||||||
cpu: {{ .Values.tap.resources.worker.requests.cpu }}
|
cpu: {{ .Values.tap.resources.server.requests.cpu }}
|
||||||
memory: {{ .Values.tap.resources.worker.requests.memory }}
|
memory: {{ .Values.tap.resources.server.requests.memory }}
|
||||||
securityContext:
|
securityContext:
|
||||||
capabilities:
|
capabilities:
|
||||||
drop:
|
drop:
|
||||||
@ -172,11 +172,11 @@ spec:
|
|||||||
name: kubeshark-secret
|
name: kubeshark-secret
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
cpu: {{ .Values.tap.resources.worker.limits.cpu }}
|
cpu: {{ .Values.tap.resources.tracer.limits.cpu }}
|
||||||
memory: {{ .Values.tap.resources.worker.limits.memory }}
|
memory: {{ .Values.tap.resources.tracer.limits.memory }}
|
||||||
requests:
|
requests:
|
||||||
cpu: {{ .Values.tap.resources.worker.requests.cpu }}
|
cpu: {{ .Values.tap.resources.tracer.requests.cpu }}
|
||||||
memory: {{ .Values.tap.resources.worker.requests.memory }}
|
memory: {{ .Values.tap.resources.tracer.requests.memory }}
|
||||||
securityContext:
|
securityContext:
|
||||||
capabilities:
|
capabilities:
|
||||||
add:
|
add:
|
||||||
|
@ -25,17 +25,31 @@ tap:
|
|||||||
dryrun: false
|
dryrun: false
|
||||||
pcap: ""
|
pcap: ""
|
||||||
resources:
|
resources:
|
||||||
worker:
|
sniffer:
|
||||||
limits:
|
limits:
|
||||||
cpu: 750m
|
cpu: 500m
|
||||||
memory: 1Gi
|
memory: 500Mi
|
||||||
|
requests:
|
||||||
|
cpu: 50m
|
||||||
|
memory: 50Mi
|
||||||
|
server:
|
||||||
|
limits:
|
||||||
|
cpu: 500m
|
||||||
|
memory: 500Mi
|
||||||
|
requests:
|
||||||
|
cpu: 50m
|
||||||
|
memory: 50Mi
|
||||||
|
tracer:
|
||||||
|
limits:
|
||||||
|
cpu: 500m
|
||||||
|
memory: 500Mi
|
||||||
requests:
|
requests:
|
||||||
cpu: 50m
|
cpu: 50m
|
||||||
memory: 50Mi
|
memory: 50Mi
|
||||||
hub:
|
hub:
|
||||||
limits:
|
limits:
|
||||||
cpu: 750m
|
cpu: 500m
|
||||||
memory: 1Gi
|
memory: 500Mi
|
||||||
requests:
|
requests:
|
||||||
cpu: 50m
|
cpu: 50m
|
||||||
memory: 50Mi
|
memory: 50Mi
|
||||||
|
Loading…
Reference in New Issue
Block a user