Skip to content

Commit 9538edb

Browse files
committed
✨ Update the Helm chart
1 parent 972f90e commit 9538edb

7 files changed

Lines changed: 39 additions & 7 deletions

File tree

charts/chart/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
apiVersion: v2
22
name: kubeshark
3-
version: "52.7"
3+
version: "52.7.3"
44
description: The API Traffic Analyzer for Kubernetes
55
home: https://kubeshark.co
66
keywords:

charts/chart/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ Example for overriding image names:
146146
| `tap.persistentStorageStatic` | Use static persistent volume provisioning (explicitly defined `PersistentVolume` ) | `false` |
147147
| `tap.persistentStoragePvcVolumeMode` | Set the pvc volume mode (Filesystem\|Block) | `Filesystem` |
148148
| `tap.efsFileSytemIdAndPath` | [EFS file system ID and, optionally, subpath and/or access point](https://github.com/kubernetes-sigs/aws-efs-csi-driver/blob/master/examples/kubernetes/access_points/README.md) `<FileSystemId>:<Path>:<AccessPointId>` | "" |
149-
| `tap.storageLimit` | Limit of either the `emptyDir` or `persistentVolumeClaim` | `500Mi` |
149+
| `tap.storageLimit` | Limit of either the `emptyDir` or `persistentVolumeClaim` | `5Gi` |
150150
| `tap.storageClass` | Storage class of the `PersistentVolumeClaim` | `standard` |
151151
| `tap.dryRun` | Preview of all pods matching the regex, without tapping them | `false` |
152152
| `tap.dnsConfig.nameservers` | Nameservers to use for DNS resolution | `[]` |
@@ -202,6 +202,7 @@ Example for overriding image names:
202202
| `tap.debug` | Enable debug mode | `false` |
203203
| `tap.telemetry.enabled` | Enable anonymous usage statistics collection | `true` |
204204
| `tap.resourceGuard.enabled` | Enable resource guard worker process, which watches RAM/disk usage and enables/disables traffic capture based on available resources | `false` |
205+
| `tap.secrets` | List of secrets to be used as source for environment variables (e.g. `kubeshark-license`) | `[]` |
205206
| `tap.sentry.enabled` | Enable sending of error logs to Sentry | `true` (only for qualified users) |
206207
| `tap.sentry.environment` | Sentry environment to label error logs with | `production` |
207208
| `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"` |

charts/chart/metrics.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ prometheus:
4141
| --- | --- | --- |
4242
| kubeshark_received_packets_total | Counter | Total number of packets received |
4343
| kubeshark_dropped_packets_total | Counter | Total number of packets dropped |
44+
| kubeshark_dropped_chunks_total | Counter | Total number of dropped packet chunks |
4445
| kubeshark_processed_bytes_total | Counter | Total number of bytes processed |
4546
| kubeshark_tcp_packets_total | Counter | Total number of TCP packets |
4647
| kubeshark_dns_packets_total | Counter | Total number of DNS packets |

charts/chart/templates/04-hub-deployment.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,13 @@ spec:
3636
{{- if .Values.tap.gitops.enabled }}
3737
- -gitops
3838
{{- end }}
39+
{{- if .Values.tap.secrets }}
40+
envFrom:
41+
{{- range .Values.tap.secrets }}
42+
- secretRef:
43+
name: {{ . }}
44+
{{- end }}
45+
{{- end }}
3946
env:
4047
- name: POD_NAME
4148
valueFrom:

charts/chart/templates/09-worker-daemon-set.yaml

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,10 @@ spec:
2525
name: kubeshark-worker-daemon-set
2626
namespace: kubeshark
2727
spec:
28-
{{- if .Values.tap.mountBpf }}
28+
{{- if or .Values.tap.mountBpf .Values.tap.persistentStorage}}
2929
initContainers:
30+
{{- end }}
31+
{{- if .Values.tap.mountBpf }}
3032
- command:
3133
- /bin/sh
3234
- -c
@@ -45,6 +47,27 @@ spec:
4547
name: sys
4648
mountPropagation: Bidirectional
4749
{{- end }}
50+
{{- if .Values.tap.persistentStorage }}
51+
- command:
52+
- /bin/sh
53+
- -c
54+
- mkdir -p /app/data/$NODE_NAME && rm -rf /app/data/$NODE_NAME/tracer_*
55+
{{- if .Values.tap.docker.overrideTag.worker }}
56+
image: '{{ .Values.tap.docker.registry }}/worker:{{ .Values.tap.docker.overrideTag.worker }}{{ include "kubeshark.dockerTagDebugVersion" . }}'
57+
{{ else }}
58+
image: '{{ .Values.tap.docker.registry }}/worker:{{ not (eq .Values.tap.docker.tag "") | ternary .Values.tap.docker.tag (include "kubeshark.defaultVersion" .) }}{{ include "kubeshark.dockerTagDebugVersion" . }}'
59+
{{- end }}
60+
imagePullPolicy: {{ .Values.tap.docker.imagePullPolicy }}
61+
name: cleanup-data-dir
62+
env:
63+
- name: NODE_NAME
64+
valueFrom:
65+
fieldRef:
66+
fieldPath: spec.nodeName
67+
volumeMounts:
68+
- mountPath: /app/data
69+
name: data
70+
{{- end }}
4871
containers:
4972
- command:
5073
- ./worker

charts/chart/templates/NOTES.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Notices:
2828
- Support chat using Intercom is enabled. It can be disabled using `--set supportChatEnabled=false`
2929
{{- end }}
3030
{{- if eq .Values.license ""}}
31-
- 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/.
31+
- 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`).
3232
{{- end }}
3333

3434
{{ if .Values.tap.ingress.enabled }}

charts/chart/values.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ tap:
3535
persistentStorageStatic: false
3636
persistentStoragePvcVolumeMode: FileSystem
3737
efsFileSytemIdAndPath: ""
38-
storageLimit: 5000Mi
38+
secrets: []
39+
storageLimit: 5Gi
3940
storageClass: standard
4041
dryRun: false
4142
dns:
@@ -150,7 +151,7 @@ tap:
150151
resourceGuard:
151152
enabled: false
152153
watchdog:
153-
enabled: true
154+
enabled: false
154155
gitops:
155156
enabled: false
156157
sentry:
@@ -166,7 +167,6 @@ tap:
166167
- icmp
167168
- kafka
168169
- redis
169-
- sctp
170170
- ws
171171
- ldap
172172
- radius

0 commit comments

Comments
 (0)