|
@@ -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]}`;
|