diff --git a/server/src/region/cluster/cluster.service.ts b/server/src/region/cluster/cluster.service.ts index 3fd6d9c..174b0e6 100644 --- a/server/src/region/cluster/cluster.service.ts +++ b/server/src/region/cluster/cluster.service.ts @@ -29,6 +29,13 @@ export class ClusterService { const conf = user.kubeconfig const kc = new k8s.KubeConfig() kc.loadFromString(conf) + if (kc.clusters.length > 0) { + const cluster = { + ...kc.clusters[0], + server: 'https://kubernetes.default.svc.cluster.local' + } + kc.clusters = [cluster] + } return kc }