mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-07-04 11:58:41 +00:00
Add secret names to inject env variables from (#1756)
* Add secrets for inject into hub deployment * Update notes * upd --------- Co-authored-by: Alon Girmonsky <1990761+alongir@users.noreply.github.com>
This commit is contained in:
parent
a4b0138abe
commit
ed0fb34888
@ -311,6 +311,7 @@ type TapConfig struct {
|
|||||||
PersistentStorageStatic bool `yaml:"persistentStorageStatic" json:"persistentStorageStatic" default:"false"`
|
PersistentStorageStatic bool `yaml:"persistentStorageStatic" json:"persistentStorageStatic" default:"false"`
|
||||||
PersistentStoragePvcVolumeMode string `yaml:"persistentStoragePvcVolumeMode" json:"persistentStoragePvcVolumeMode" default:"FileSystem"`
|
PersistentStoragePvcVolumeMode string `yaml:"persistentStoragePvcVolumeMode" json:"persistentStoragePvcVolumeMode" default:"FileSystem"`
|
||||||
EfsFileSytemIdAndPath string `yaml:"efsFileSytemIdAndPath" json:"efsFileSytemIdAndPath" default:""`
|
EfsFileSytemIdAndPath string `yaml:"efsFileSytemIdAndPath" json:"efsFileSytemIdAndPath" default:""`
|
||||||
|
Secrets []string `yaml:"secrets" json:"secrets" default:"[]"`
|
||||||
StorageLimit string `yaml:"storageLimit" json:"storageLimit" default:"5Gi"`
|
StorageLimit string `yaml:"storageLimit" json:"storageLimit" default:"5Gi"`
|
||||||
StorageClass string `yaml:"storageClass" json:"storageClass" default:"standard"`
|
StorageClass string `yaml:"storageClass" json:"storageClass" default:"standard"`
|
||||||
DryRun bool `yaml:"dryRun" json:"dryRun" default:"false"`
|
DryRun bool `yaml:"dryRun" json:"dryRun" default:"false"`
|
||||||
|
@ -202,6 +202,7 @@ Example for overriding image names:
|
|||||||
| `tap.debug` | Enable debug mode | `false` |
|
| `tap.debug` | Enable debug mode | `false` |
|
||||||
| `tap.telemetry.enabled` | Enable anonymous usage statistics collection | `true` |
|
| `tap.telemetry.enabled` | Enable anonymous usage statistics collection | `true` |
|
||||||
| `tap.resourceGuard.enabled` | Enable resource guard worker process, which watches RAM/disk usage and enables/disables traffic capture based on available resources | `false` |
|
| `tap.resourceGuard.enabled` | Enable resource guard worker process, which watches RAM/disk usage and enables/disables traffic capture based on available resources | `false` |
|
||||||
|
| `tap.secrets` | List of secrets to be used as source for environment variables (e.g. `kubeshark-license`) | `[]` |
|
||||||
| `tap.sentry.enabled` | Enable sending of error logs to Sentry | `true` (only for qualified users) |
|
| `tap.sentry.enabled` | Enable sending of error logs to Sentry | `true` (only for qualified users) |
|
||||||
| `tap.sentry.environment` | Sentry environment to label error logs with | `production` |
|
| `tap.sentry.environment` | Sentry environment to label error logs with | `production` |
|
||||||
| `tap.defaultFilter` | Sets the default dashboard KFL filter (e.g. `http`). By default, this value is set to filter out noisy protocols such as DNS, UDP, ICMP and TCP. The user can easily change this, **temporarily**, in the Dashboard. For a permanent change, you should change this value in the `values.yaml` or `config.yaml` file. | `"!dns and !error"` |
|
| `tap.defaultFilter` | Sets the default dashboard KFL filter (e.g. `http`). By default, this value is set to filter out noisy protocols such as DNS, UDP, ICMP and TCP. The user can easily change this, **temporarily**, in the Dashboard. For a permanent change, you should change this value in the `values.yaml` or `config.yaml` file. | `"!dns and !error"` |
|
||||||
|
@ -36,6 +36,13 @@ spec:
|
|||||||
{{- if .Values.tap.gitops.enabled }}
|
{{- if .Values.tap.gitops.enabled }}
|
||||||
- -gitops
|
- -gitops
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- if .Values.tap.secrets }}
|
||||||
|
envFrom:
|
||||||
|
{{- range .Values.tap.secrets }}
|
||||||
|
- secretRef:
|
||||||
|
name: {{ . }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
env:
|
env:
|
||||||
- name: POD_NAME
|
- name: POD_NAME
|
||||||
valueFrom:
|
valueFrom:
|
||||||
|
@ -28,7 +28,7 @@ Notices:
|
|||||||
- Support chat using Intercom is enabled. It can be disabled using `--set supportChatEnabled=false`
|
- Support chat using Intercom is enabled. It can be disabled using `--set supportChatEnabled=false`
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if eq .Values.license ""}}
|
{{- if eq .Values.license ""}}
|
||||||
- No license key was detected. You can either log-in/sign-up through the dashboard, or download the license key from https://console.kubeshark.co/.
|
- No license key was detected. You can either log-in/sign-up through the dashboard, or download the license key from https://console.kubeshark.co/ and add it as `LICENSE` via mounted secret (`tap.secrets`).
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
{{ if .Values.tap.ingress.enabled }}
|
{{ if .Values.tap.ingress.enabled }}
|
||||||
|
@ -35,6 +35,7 @@ tap:
|
|||||||
persistentStorageStatic: false
|
persistentStorageStatic: false
|
||||||
persistentStoragePvcVolumeMode: FileSystem
|
persistentStoragePvcVolumeMode: FileSystem
|
||||||
efsFileSytemIdAndPath: ""
|
efsFileSytemIdAndPath: ""
|
||||||
|
secrets: []
|
||||||
storageLimit: 5Gi
|
storageLimit: 5Gi
|
||||||
storageClass: standard
|
storageClass: standard
|
||||||
dryRun: false
|
dryRun: false
|
||||||
|
Loading…
Reference in New Issue
Block a user