🔨 Separate the resources of each container in worker DaemonSet

This commit is contained in:
M. Mert Yildiran
2023-09-28 01:36:56 +03:00
parent e1106e25c4
commit 6add6fb1ec
3 changed files with 37 additions and 21 deletions

View File

@@ -34,8 +34,8 @@ const (
)
type ResourceLimits struct {
CPU string `yaml:"cpu" json:"cpu" default:"750m"`
Memory string `yaml:"memory" json:"memory" default:"1Gi"`
CPU string `yaml:"cpu" json:"cpu" default:"500m"`
Memory string `yaml:"memory" json:"memory" default:"500Mi"`
}
type ResourceRequests struct {
@@ -76,8 +76,10 @@ type DockerConfig struct {
}
type ResourcesConfig struct {
Worker ResourceRequirements `yaml:"worker" json:"worker"`
Hub ResourceRequirements `yaml:"hub" json:"hub"`
Sniffer ResourceRequirements `yaml:"sniffer" json:"sniffer"`
Server ResourceRequirements `yaml:"server" json:"server"`
Tracer ResourceRequirements `yaml:"tracer" json:"tracer"`
Hub ResourceRequirements `yaml:"hub" json:"hub"`
}
type AuthConfig struct {