Alexander Belanger 5 лет назад
Родитель
Сommit
66c9ab9cc6

+ 1 - 1
dashboard/src/main/home/cluster-dashboard/expanded-chart/status/ControllerTab.tsx

@@ -133,7 +133,7 @@ export default class ControllerTab extends Component<PropsType, StateType> {
   setupWebsocket = (kind: string) => {
   setupWebsocket = (kind: string) => {
     let { currentCluster, currentProject } = this.context;
     let { currentCluster, currentProject } = this.context;
     let protocol = window.location.protocol == "https:" ? "wss" : "ws";
     let protocol = window.location.protocol == "https:" ? "wss" : "ws";
-    let connString = `${protocol}://${process.env.API_SERVER}/api/projects/${currentProject.id}/k8s/${kind}/status?cluster_id=${currentCluster.id}`;
+    let connString = `${protocol}://${window.location.host}/api/projects/${currentProject.id}/k8s/${kind}/status?cluster_id=${currentCluster.id}`;
 
 
     if (kind == "pod" && this.state.selectors) {
     if (kind == "pod" && this.state.selectors) {
       connString += `&selectors=${this.state.selectors[0]}`;
       connString += `&selectors=${this.state.selectors[0]}`;