mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-09-26 04:54:36 +00:00
Use badger max db size option
This commit is contained in:
@@ -303,7 +303,7 @@ type SeLinuxOptionsConfig struct {
|
|||||||
type CaptureConfig struct {
|
type CaptureConfig struct {
|
||||||
Stopped bool `yaml:"stopped" json:"stopped" default:"false"`
|
Stopped bool `yaml:"stopped" json:"stopped" default:"false"`
|
||||||
StopAfter string `yaml:"stopAfter" json:"stopAfter" default:"5m"`
|
StopAfter string `yaml:"stopAfter" json:"stopAfter" default:"5m"`
|
||||||
DbMaxSizeRatio float64 `yaml:"dbMaxSizeRatio" json:"dbMaxSizeRatio" default:"0.8"`
|
DbMaxSize string `yaml:"dbMaxSize" json:"dbMaxSize" default:""`
|
||||||
}
|
}
|
||||||
|
|
||||||
type TapConfig struct {
|
type TapConfig struct {
|
||||||
|
@@ -140,7 +140,7 @@ Example for overriding image names:
|
|||||||
| `tap.bpfOverride` | When using AF_PACKET as a traffic capture backend, override any existing pod targeting rules and set explicit BPF expression (e.g. `net 0.0.0.0/0`). | `[]` |
|
| `tap.bpfOverride` | When using AF_PACKET as a traffic capture backend, override any existing pod targeting rules and set explicit BPF expression (e.g. `net 0.0.0.0/0`). | `[]` |
|
||||||
| `tap.capture.stopped` | Set to `false` to have traffic processing start automatically. When set to `true`, traffic processing is stopped by default, resulting in almost no resource consumption (e.g. Kubeshark is dormant). This property can be dynamically control via the dashboard. | `false` |
|
| `tap.capture.stopped` | Set to `false` to have traffic processing start automatically. When set to `true`, traffic processing is stopped by default, resulting in almost no resource consumption (e.g. Kubeshark is dormant). This property can be dynamically control via the dashboard. | `false` |
|
||||||
| `tap.capture.stopAfter` | Set to a duration (e.g. `30s`) to have traffic processing stop after no websocket activity between worker and hub. | `30s` |
|
| `tap.capture.stopAfter` | Set to a duration (e.g. `30s`) to have traffic processing stop after no websocket activity between worker and hub. | `30s` |
|
||||||
| `tap.capture.dbMaxSizeRatio` | Ratio of allocated storage (`tap.storageLimit`) to use for capture database. When set to `0.8`, the database will use 80% of allocated storage. Set to `0` to disable automatic calculation and use 200MB default. | `0.8` |
|
| `tap.capture.dbMaxSize` | Maximum size for capture database (e.g., `4Gi`, `2000Mi`). When empty, automatically uses 80% of allocated storage (`tap.storageLimit`). | `""` |
|
||||||
| `tap.release.repo` | URL of the Helm chart repository | `https://helm.kubeshark.co` |
|
| `tap.release.repo` | URL of the Helm chart repository | `https://helm.kubeshark.co` |
|
||||||
| `tap.release.name` | Helm release name | `kubeshark` |
|
| `tap.release.name` | Helm release name | `kubeshark` |
|
||||||
| `tap.release.namespace` | Helm release namespace | `default` |
|
| `tap.release.namespace` | Helm release namespace | `default` |
|
||||||
|
@@ -101,8 +101,8 @@ spec:
|
|||||||
- '{{ .Values.tap.misc.staleTimeoutSeconds }}'
|
- '{{ .Values.tap.misc.staleTimeoutSeconds }}'
|
||||||
- -storage-size
|
- -storage-size
|
||||||
- '{{ .Values.tap.storageLimit }}'
|
- '{{ .Values.tap.storageLimit }}'
|
||||||
- -capture-db-max-size-ratio
|
- -capture-db-max-size
|
||||||
- '{{ .Values.tap.capture.dbMaxSizeRatio }}'
|
- '{{ .Values.tap.capture.dbMaxSize }}'
|
||||||
{{- if .Values.tap.docker.overrideImage.worker }}
|
{{- if .Values.tap.docker.overrideImage.worker }}
|
||||||
image: '{{ .Values.tap.docker.overrideImage.worker }}'
|
image: '{{ .Values.tap.docker.overrideImage.worker }}'
|
||||||
{{- else if .Values.tap.docker.overrideTag.worker }}
|
{{- else if .Values.tap.docker.overrideTag.worker }}
|
||||||
|
@@ -29,7 +29,7 @@ tap:
|
|||||||
capture:
|
capture:
|
||||||
stopped: false
|
stopped: false
|
||||||
stopAfter: 5m
|
stopAfter: 5m
|
||||||
dbMaxSizeRatio: 0.8
|
dbMaxSize: ""
|
||||||
release:
|
release:
|
||||||
repo: https://helm.kubeshark.co
|
repo: https://helm.kubeshark.co
|
||||||
name: kubeshark
|
name: kubeshark
|
||||||
|
Reference in New Issue
Block a user