Skip to content

Commit 972f90e

Browse files
committed
✨ Update the Helm chart
1 parent 9c53585 commit 972f90e

12 files changed

Lines changed: 106 additions & 12 deletions

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.6"
3+
version: "52.7"
44
description: The API Traffic Analyzer for Kubernetes
55
home: https://kubeshark.co
66
keywords:

charts/chart/README.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ Example for overriding image names:
144144
| `tap.release.namespace` | Helm release namespace | `default` |
145145
| `tap.persistentStorage` | Use `persistentVolumeClaim` instead of `emptyDir` | `false` |
146146
| `tap.persistentStorageStatic` | Use static persistent volume provisioning (explicitly defined `PersistentVolume` ) | `false` |
147+
| `tap.persistentStoragePvcVolumeMode` | Set the pvc volume mode (Filesystem\|Block) | `Filesystem` |
147148
| `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>` | "" |
148149
| `tap.storageLimit` | Limit of either the `emptyDir` or `persistentVolumeClaim` | `500Mi` |
149150
| `tap.storageClass` | Storage class of the `PersistentVolumeClaim` | `standard` |
@@ -209,6 +210,7 @@ Example for overriding image names:
209210
| `tap.metrics.port` | Pod port used to expose Prometheus metrics | `49100` |
210211
| `tap.enabledDissectors` | This is an array of strings representing the list of supported protocols. Remove or comment out redundant protocols (e.g., dns).| The default list excludes: `udp` and `tcp` |
211212
| `tap.mountBpf` | BPF filesystem needs to be mounted for eBPF to work properly. This helm value determines whether Kubeshark will attempt to mount the filesystem. This option is not required if filesystem is already mounts. │ `true`|
213+
| `tap.gitops.enabled` | Enable GitOps functionality. This will allow you to use GitOps to manage your Kubeshark configuration. | `false` |
212214
| `logs.file` | Logs dump path | `""` |
213215
| `pcapdump.enabled` | Enable recording of all traffic captured according to other parameters. Whatever Kubeshark captures, considering pod targeting rules, will be stored in pcap files ready to be viewed by tools | `true` |
214216
| `pcapdump.maxTime` | The time window into the past that will be stored. Older traffic will be discarded. | `2h` |
@@ -222,7 +224,7 @@ Example for overriding image names:
222224
| `scripting.source` | Source directory of the scripts | `""` |
223225
| `scripting.watchScripts` | Enable watch mode for the scripts in source directory | `true` |
224226
| `timezone` | IANA time zone applied to time shown in the front-end | `""` (local time zone applies) |
225-
| `supportChatEnabled` | Enable real-time support chat channel based on Intercom | `true` |
227+
| `supportChatEnabled` | Enable real-time support chat channel based on Intercom | `false` |
226228
| `internetConnectivity` | Turns off API requests that are dependant on Internet connectivity such as `telemetry` and `online-support`. | `true` |
227229

228230
KernelMapping pairs kernel versions with a
@@ -351,8 +353,20 @@ tap:
351353
clientSecret: create your own client password
352354
refreshTokenLifetime: "3960h" # 165 days
353355
oauth2StateParamExpiry: "10m"
356+
bypassSslCaCheck: false
354357
```
355358
359+
---
360+
361+
**Note:**<br/>
362+
Set `tap.auth.dexOidc.bypassSslCaCheck: true`
363+
to allow Kubeshark communication with Dex IdP having an unknown SSL Certificate Authority.
364+
365+
This setting allows you to prevent such SSL CA-related errors:<br/>
366+
`tls: failed to verify certificate: x509: certificate signed by unknown authority`
367+
368+
---
369+
356370
Once you run `helm install kubeshark kubeshark/kubeshark -f ./values.yaml`, Kubeshark will be installed with (Dex) OIDC authentication enabled.
357371

358372
---
@@ -443,6 +457,7 @@ tap:
443457

444458
refreshTokenLifetime: "3960h" # 165 days
445459
oauth2StateParamExpiry: "10m"
460+
bypassSslCaCheck: false
446461
dexConfig:
447462
# This field is REQUIRED!
448463
#

charts/chart/templates/02-cluster-role.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,26 @@ rules:
6363
resourceNames:
6464
- kubeshark-secret
6565
- kubeshark-config-map
66+
- kubeshark-secret-default
67+
- kubeshark-config-map-default
6668
resources:
6769
- secrets
6870
- configmaps
6971
verbs:
72+
- create
7073
- get
7174
- watch
7275
- list
7376
- update
7477
- patch
78+
- delete
79+
- apiGroups:
80+
- ""
81+
- v1
82+
resources:
83+
- secrets
84+
- configmaps
85+
- pods/log
86+
verbs:
87+
- create
88+
- get

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ spec:
3333
- "8080"
3434
- -loglevel
3535
- '{{ .Values.logLevel | default "warning" }}'
36+
{{- if .Values.tap.gitops.enabled }}
37+
- -gitops
38+
{{- end }}
3639
env:
3740
- name: POD_NAME
3841
valueFrom:

charts/chart/templates/06-front-deployment.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,12 @@ spec:
3636
{{- else -}}
3737
{{ .Values.tap.auth.type }}
3838
{{- end }}'
39+
- name: REACT_APP_COMPLETE_STREAMING_ENABLED
40+
value: '{{- if and (hasKey .Values.tap "dashboard") (hasKey .Values.tap.dashboard "completeStreamingEnabled") -}}
41+
{{ eq .Values.tap.dashboard.completeStreamingEnabled true | ternary "true" "false" }}
42+
{{- else -}}
43+
true
44+
{{- end }}'
3945
- name: REACT_APP_AUTH_SAML_IDP_METADATA_URL
4046
value: '{{ not (eq .Values.tap.auth.saml.idpMetadataUrl "") | ternary .Values.tap.auth.saml.idpMetadataUrl " " }}'
4147
- name: REACT_APP_TIMEZONE

charts/chart/templates/08-persistent-volume-claim.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ metadata:
3333
name: kubeshark-persistent-volume-claim
3434
namespace: {{ .Release.Namespace }}
3535
spec:
36+
volumeMode: {{ .Values.tap.persistentStoragePvcVolumeMode }}
3637
accessModes:
3738
- ReadWriteMany
3839
resources:

charts/chart/templates/12-config-map.yaml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
kind: ConfigMap
22
apiVersion: v1
33
metadata:
4-
name: kubeshark-config-map
4+
name: {{ include "kubeshark.configmapName" . }}
55
namespace: {{ .Release.Namespace }}
66
labels:
77
app.kubeshark.co/app: hub
@@ -33,6 +33,15 @@ data:
3333
AUTH_OIDC_ISSUER: '{{ default "not set" (((.Values.tap).auth).dexOidc).issuer }}'
3434
AUTH_OIDC_REFRESH_TOKEN_LIFETIME: '{{ default "3960h" (((.Values.tap).auth).dexOidc).refreshTokenLifetime }}'
3535
AUTH_OIDC_STATE_PARAM_EXPIRY: '{{ default "10m" (((.Values.tap).auth).dexOidc).oauth2StateParamExpiry }}'
36+
AUTH_OIDC_BYPASS_SSL_CA_CHECK: '{{- if and
37+
(hasKey .Values.tap "auth")
38+
(hasKey .Values.tap.auth "dexOidc")
39+
(hasKey .Values.tap.auth.dexOidc "bypassSslCaCheck")
40+
-}}
41+
{{ eq .Values.tap.auth.dexOidc.bypassSslCaCheck true | ternary "true" "false" }}
42+
{{- else -}}
43+
false
44+
{{- end }}'
3645
TELEMETRY_DISABLED: '{{ not .Values.internetConnectivity | ternary "true" (not .Values.tap.telemetry.enabled | ternary "true" "false") }}'
3746
SCRIPTING_DISABLED: '{{- if .Values.tap.liveConfigMapChangesDisabled -}}
3847
{{- if .Values.demoModeEnabled -}}

charts/chart/templates/13-secret.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
kind: Secret
22
apiVersion: v1
33
metadata:
4-
name: kubeshark-secret
4+
name: {{ include "kubeshark.secretName" . }}
55
namespace: {{ .Release.Namespace }}
66
labels:
77
app.kubeshark.co/app: hub
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{{ if .Values.tap.gitops.enabled -}}
2+
apiVersion: batch/v1
3+
kind: Job
4+
metadata:
5+
name: kubeshark-cleanup-job
6+
annotations:
7+
"helm.sh/hook": pre-delete
8+
"helm.sh/hook-delete-policy": hook-succeeded
9+
spec:
10+
template:
11+
spec:
12+
serviceAccountName: {{ include "kubeshark.serviceAccountName" . }}
13+
restartPolicy: Never
14+
containers:
15+
- name: cleanup
16+
{{- if .Values.tap.docker.overrideImage.hub }}
17+
image: '{{ .Values.tap.docker.overrideImage.hub }}'
18+
{{- else if .Values.tap.docker.overrideTag.hub }}
19+
image: '{{ .Values.tap.docker.registry }}/hub:{{ .Values.tap.docker.overrideTag.hub }}'
20+
{{ else }}
21+
image: '{{ .Values.tap.docker.registry }}/hub:{{ not (eq .Values.tap.docker.tag "") | ternary .Values.tap.docker.tag (include "kubeshark.defaultVersion" .) }}'
22+
{{- end }}
23+
command: ["/app/cleanup"]
24+
{{ end -}}

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 get your 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/.
3232
{{- end }}
3333

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

0 commit comments

Comments
 (0)