Use the tap.proxy.hub.port and tap.proxy.hub.srvport in the Helm templates

This commit is contained in:
M. Mert Yildiran
2023-07-09 22:58:02 +03:00
parent b4e8573634
commit 988bb16260
4 changed files with 4 additions and 4 deletions

View File

@@ -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 {

View File

@@ -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 }}'

View File

@@ -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

View File

@@ -12,7 +12,6 @@ tap:
srvport: 8898
front:
port: 8899
srvport: 8899
host: 127.0.0.1
regex: .*
namespaces: []