mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-06-25 15:54:43 +00:00
⚡ Set environment variables of front
pod
This commit is contained in:
parent
af02b1d779
commit
647d197f51
@ -114,6 +114,11 @@ func createAndStartContainers(
|
|||||||
respFront, err = cli.ContainerCreate(ctx, &container.Config{
|
respFront, err = cli.ContainerCreate(ctx, &container.Config{
|
||||||
Image: imageFront,
|
Image: imageFront,
|
||||||
Tty: false,
|
Tty: false,
|
||||||
|
Env: []string{
|
||||||
|
"REACT_APP_DEFAULT_FILTER= ",
|
||||||
|
"REACT_APP_HUB_HOST=localhost",
|
||||||
|
"REACT_APP_HUB_PORT=8898",
|
||||||
|
},
|
||||||
}, hostConfigFront, nil, nil, "kubeshark-front")
|
}, hostConfigFront, nil, nil, "kubeshark-front")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return
|
return
|
||||||
|
@ -345,8 +345,22 @@ func (provider *Provider) BuildFrontPod(opts *PodOptions, mountVolumeClaim bool,
|
|||||||
"memory": memRequests,
|
"memory": memRequests,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Command: []string{"nginx"},
|
Command: []string{"nginx"},
|
||||||
Args: []string{"-g", "daemon off;"},
|
Args: []string{"-g", "daemon off;"},
|
||||||
|
Env: []core.EnvVar{
|
||||||
|
{
|
||||||
|
Name: "REACT_APP_DEFAULT_FILTER",
|
||||||
|
Value: " ",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
Name: "REACT_APP_HUB_HOST",
|
||||||
|
Value: "localhost",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
Name: "REACT_APP_HUB_PORT",
|
||||||
|
Value: "8898",
|
||||||
|
},
|
||||||
|
},
|
||||||
WorkingDir: models.DataDirPath,
|
WorkingDir: models.DataDirPath,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user