diff --git a/helm-chart/templates/04-hub-deployment.yaml b/helm-chart/templates/04-hub-deployment.yaml index acb0652b5..123acd35f 100644 --- a/helm-chart/templates/04-hub-deployment.yaml +++ b/helm-chart/templates/04-hub-deployment.yaml @@ -41,6 +41,11 @@ spec: valueFrom: fieldRef: fieldPath: metadata.namespace + - name: KUBESHARK_CLOUD_API_URL + valueFrom: + configMapKeyRef: + name: kubeshark-config-map + key: KUBESHARK_CLOUD_API_URL image: '{{ .Values.tap.docker.registry }}/hub:{{ not (eq .Values.tap.docker.tag "") | ternary .Values.tap.docker.tag (printf "v%s" .Chart.Version) }}' imagePullPolicy: {{ .Values.tap.docker.imagePullPolicy }} readinessProbe: diff --git a/helm-chart/templates/09-worker-daemon-set.yaml b/helm-chart/templates/09-worker-daemon-set.yaml index 474fe8242..56f64841c 100644 --- a/helm-chart/templates/09-worker-daemon-set.yaml +++ b/helm-chart/templates/09-worker-daemon-set.yaml @@ -80,6 +80,11 @@ spec: fieldPath: metadata.namespace - name: TCP_STREAM_CHANNEL_TIMEOUT_MS value: '{{ .Values.tap.tcpStreamChannelTimeoutMs }}' + - name: KUBESHARK_CLOUD_API_URL + valueFrom: + configMapKeyRef: + name: kubeshark-config-map + key: KUBESHARK_CLOUD_API_URL resources: limits: cpu: {{ .Values.tap.resources.sniffer.limits.cpu }} diff --git a/helm-chart/templates/12-config-map.yaml b/helm-chart/templates/12-config-map.yaml index 0a4dfa286..b10fbf1eb 100644 --- a/helm-chart/templates/12-config-map.yaml +++ b/helm-chart/templates/12-config-map.yaml @@ -25,3 +25,5 @@ data: REPLAY_DISABLED: '{{ .Values.tap.replayDisabled | ternary "true" "" }}' GLOBAL_FILTER: {{ include "kubeshark.escapeDoubleQuotes" .Values.tap.globalFilter | quote }} TRAFFIC_SAMPLE_RATE: '{{ .Values.tap.trafficSampleRate }}' + KUBESHARK_CLOUD_API_URL: 'https://api.kubeshark.co' +