Compare commits

...
4 changed files with 30 additions and 0 deletions
+8
View File
@@ -153,6 +153,14 @@ func CreateDefaultConfig() ConfigStruct {
LDAP: []uint16{389}, LDAP: []uint16{389},
DIAMETER: []uint16{3868}, DIAMETER: []uint16{3868},
}, },
Nginx: configStructs.NginxConfig{
Proxy: configStructs.ProxyNginxConfig{
BufferSize: "64k",
BuffersCount: "4",
BuffersSize: "128k",
BusyBuffersSize: "128k",
},
},
Dashboard: configStructs.DashboardConfig{ Dashboard: configStructs.DashboardConfig{
CompleteStreamingEnabled: true, CompleteStreamingEnabled: true,
ClusterWideMapEnabled: false, ClusterWideMapEnabled: false,
+12
View File
@@ -209,6 +209,17 @@ type FrontRoutingConfig struct {
BasePath string `yaml:"basePath" json:"basePath" default:""` BasePath string `yaml:"basePath" json:"basePath" default:""`
} }
type NginxConfig struct {
Proxy ProxyNginxConfig `yaml:"proxy" json:"proxy"`
}
type ProxyNginxConfig struct {
BufferSize string `yaml:"bufferSize" json:"bufferSize" default:"64k"`
BuffersCount string `yaml:"buffersCount" json:"buffersCount" default:"4"`
BuffersSize string `yaml:"buffersSize" json:"buffersSize" default:"128k"`
BusyBuffersSize string `yaml:"busyBuffersSize" json:"busyBuffersSize" default:"128k"`
}
type ReleaseConfig struct { type ReleaseConfig struct {
Repo string `yaml:"repo" json:"repo" default:"https://helm.kubeshark.com"` Repo string `yaml:"repo" json:"repo" default:"https://helm.kubeshark.com"`
Name string `yaml:"name" json:"name" default:"kubeshark"` Name string `yaml:"name" json:"name" default:"kubeshark"`
@@ -408,6 +419,7 @@ type TapConfig struct {
Routing RoutingConfig `yaml:"routing" json:"routing"` Routing RoutingConfig `yaml:"routing" json:"routing"`
IPv6 bool `yaml:"ipv6" json:"ipv6" default:"true"` IPv6 bool `yaml:"ipv6" json:"ipv6" default:"true"`
Debug bool `yaml:"debug" json:"debug" default:"false"` Debug bool `yaml:"debug" json:"debug" default:"false"`
Nginx NginxConfig `yaml:"nginx" json:"nginx"`
Dashboard DashboardConfig `yaml:"dashboard" json:"dashboard"` Dashboard DashboardConfig `yaml:"dashboard" json:"dashboard"`
Telemetry TelemetryConfig `yaml:"telemetry" json:"telemetry"` Telemetry TelemetryConfig `yaml:"telemetry" json:"telemetry"`
ResourceGuard ResourceGuardConfig `yaml:"resourceGuard" json:"resourceGuard"` ResourceGuard ResourceGuardConfig `yaml:"resourceGuard" json:"resourceGuard"`
@@ -20,6 +20,10 @@ data:
client_header_buffer_size 32k; client_header_buffer_size 32k;
large_client_header_buffers 8 64k; large_client_header_buffers 8 64k;
proxy_buffer_size {{ default "64k" ((((.Values).tap).nginx).proxy).bufferSize }};
proxy_buffers {{ default "4" ((((.Values).tap).nginx).proxy).buffersCount }} {{ default "128k" ((((.Values).tap).nginx).proxy).buffersSize }};
proxy_busy_buffers_size {{ default "128k" ((((.Values).tap).nginx).proxy).busyBuffersSize }};
location {{ default "" (((.Values.tap).routing).front).basePath }}/api { location {{ default "" (((.Values.tap).routing).front).basePath }}/api {
rewrite ^{{ default "" (((.Values.tap).routing).front).basePath }}/api(.*)$ $1 break; rewrite ^{{ default "" (((.Values.tap).routing).front).basePath }}/api(.*)$ $1 break;
proxy_pass http://kubeshark-hub; proxy_pass http://kubeshark-hub;
+6
View File
@@ -182,6 +182,12 @@ tap:
routing: routing:
front: front:
basePath: "" basePath: ""
nginx:
proxy:
bufferSize: 64k
buffersCount: 4
buffersSize: 128k
busyBuffersSize: 128k
ipv6: true ipv6: true
debug: false debug: false
dashboard: dashboard: