Set environment variables of front pod

This commit is contained in:
M. Mert Yildiran
2022-12-28 05:01:43 +03:00
parent af02b1d779
commit 647d197f51
2 changed files with 21 additions and 2 deletions

View File

@@ -345,8 +345,22 @@ func (provider *Provider) BuildFrontPod(opts *PodOptions, mountVolumeClaim bool,
"memory": memRequests,
},
},
Command: []string{"nginx"},
Args: []string{"-g", "daemon off;"},
Command: []string{"nginx"},
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,
},
}