mirror of
https://github.com/kubeshark/kubeshark.git
synced 2026-07-25 00:08:59 +00:00
Use the tap.proxy.hub.port and tap.proxy.hub.srvport in the Helm templates
This commit is contained in:
@@ -57,8 +57,7 @@ type HubConfig struct {
|
||||
}
|
||||
|
||||
type FrontConfig struct {
|
||||
Port uint16 `yaml:"port" json:"port" default:"8899"`
|
||||
SrvPort uint16 `yaml:"srvport" json:"srvport" default:"8899"`
|
||||
Port uint16 `yaml:"port" json:"port" default:"8899"`
|
||||
}
|
||||
|
||||
type ProxyConfig struct {
|
||||
|
||||
@@ -19,6 +19,8 @@ spec:
|
||||
- command:
|
||||
- ./hub
|
||||
{{ .Values.tap.debug | ternary "- -debug" "" }}
|
||||
- -port
|
||||
- '{{ .Values.tap.proxy.hub.srvport }}'
|
||||
env:
|
||||
- name: POD_REGEX
|
||||
value: '{{ .Values.tap.regex }}'
|
||||
|
||||
@@ -22,7 +22,7 @@ spec:
|
||||
- name: REACT_APP_HUB_HOST
|
||||
value: ' '
|
||||
- name: REACT_APP_HUB_PORT
|
||||
value: '{{ .Values.tap.ingress.enabled | ternary "/api" ":8898" }}'
|
||||
value: '{{ .Values.tap.ingress.enabled | ternary "/api" (print ":" .Values.tap.proxy.hub.port) }}'
|
||||
image: '{{ .Values.tap.docker.registry }}/front:{{ .Values.tap.docker.tag }}'
|
||||
imagePullPolicy: {{ .Values.tap.docker.imagepullpolicy }}
|
||||
name: kubeshark-front
|
||||
|
||||
@@ -12,7 +12,6 @@ tap:
|
||||
srvport: 8898
|
||||
front:
|
||||
port: 8899
|
||||
srvport: 8899
|
||||
host: 127.0.0.1
|
||||
regex: .*
|
||||
namespaces: []
|
||||
|
||||
Reference in New Issue
Block a user