mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-09-02 19:15:26 +00:00
⚡ Template REACT_APP_HUB_PORT
in the Helm chart
This commit is contained in:
@@ -162,6 +162,20 @@ var frontPodMappings = map[string]interface{}{
|
|||||||
"metadata.namespace": "{{ .Values.tap.selfnamespace }}",
|
"metadata.namespace": "{{ .Values.tap.selfnamespace }}",
|
||||||
"spec.containers[0].image": "{{ .Values.tap.docker.registry }}/front:{{ .Values.tap.docker.tag }}",
|
"spec.containers[0].image": "{{ .Values.tap.docker.registry }}/front:{{ .Values.tap.docker.tag }}",
|
||||||
"spec.containers[0].imagePullPolicy": "{{ .Values.tap.docker.imagepullpolicy }}",
|
"spec.containers[0].imagePullPolicy": "{{ .Values.tap.docker.imagepullpolicy }}",
|
||||||
|
"spec.containers[0].env": []map[string]interface{}{
|
||||||
|
{
|
||||||
|
"name": "REACT_APP_DEFAULT_FILTER",
|
||||||
|
"value": " ",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "REACT_APP_HUB_HOST",
|
||||||
|
"value": " ",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "REACT_APP_HUB_PORT",
|
||||||
|
"value": "{{ .Values.tap.ingress.enabled | ternary \"80/api\" \"8898\" }}",
|
||||||
|
},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
var frontServiceMappings = serviceAccountMappings
|
var frontServiceMappings = serviceAccountMappings
|
||||||
var persistentVolumeMappings = map[string]interface{}{
|
var persistentVolumeMappings = map[string]interface{}{
|
||||||
|
@@ -18,7 +18,7 @@ spec:
|
|||||||
- name: REACT_APP_HUB_HOST
|
- name: REACT_APP_HUB_HOST
|
||||||
value: ' '
|
value: ' '
|
||||||
- name: REACT_APP_HUB_PORT
|
- name: REACT_APP_HUB_PORT
|
||||||
value: "8898"
|
value: '{{ .Values.tap.ingress.enabled | ternary "80/api" "8898" }}'
|
||||||
image: '{{ .Values.tap.docker.registry }}/front:{{ .Values.tap.docker.tag }}'
|
image: '{{ .Values.tap.docker.registry }}/front:{{ .Values.tap.docker.tag }}'
|
||||||
imagePullPolicy: '{{ .Values.tap.docker.imagepullpolicy }}'
|
imagePullPolicy: '{{ .Values.tap.docker.imagepullpolicy }}'
|
||||||
name: kubeshark-front
|
name: kubeshark-front
|
||||||
|
Reference in New Issue
Block a user