# Cannot see namespaces from imported cluster

**URL:** https://forums.suse.com/t/cannot-see-namespaces-from-imported-cluster/10534
**Category:** SUSE Rancher Prime
**Created:** [May 23, 2018, 10:39am UTC](https://forums.suse.com/t/cannot-see-namespaces-from-imported-cluster/10534 "2018-05-23T10:39:50Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![thanethomson](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/thanethomson/32/4089_2.png) [@thanethomson](https://forums.suse.com/u/thanethomson)
#### Post date: [May 23, 2018, 10:39am UTC](https://forums.suse.com/t/cannot-see-namespaces-from-imported-cluster/10534/1 "2018-05-23T10:39:50Z")

</div>

I’ve imported a K8s cluster, and can see all of the nodes, but I can’t see any of the existing namespaces/deployments/etc. from the imported cluster. Any idea as to how to see these? Do I have to create a project with the relevant namespace?

Can’t find any information on this anywhere.

---

<div class="post-metadata">

### Author: ![thanethomson](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/thanethomson/32/4089_2.png) [@thanethomson](https://forums.suse.com/u/thanethomson)
#### Post date: [May 23, 2018, 11:01am UTC](https://forums.suse.com/t/cannot-see-namespaces-from-imported-cluster/10534/2 "2018-05-23T11:01:27Z")

</div>

Could possibly be related to [https://github.com/rancher/rancher/issues/13642](https://github.com/rancher/rancher/issues/13642).

---

<div class="post-metadata">

### Author: ![cjellick](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/cjellick/32/2876_2.png) [@cjellick](https://forums.suse.com/u/cjellick)
#### Post date: [May 24, 2018, 4:02pm UTC](https://forums.suse.com/t/cannot-see-namespaces-from-imported-cluster/10534/3 "2018-05-24T16:02:41Z")

</div>

We are actively working on that bug. Where did you cluster come from (ie AKS, GKE, RKE, other)?

---

<div class="post-metadata">

### Author: ![thanethomson](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/thanethomson/32/4089_2.png) [@thanethomson](https://forums.suse.com/u/thanethomson)
#### Post date: [June 15, 2018, 12:28pm UTC](https://forums.suse.com/t/cannot-see-namespaces-from-imported-cluster/10534/4 "2018-06-15T12:28:31Z")

</div>

This was on an Azure VM, cluster was built using kubespray on Azure VMs (Ubuntu 16.04).

We eventually figured out that, in our case, someone or something had deleted our ClusterAdmin role. After creating the relevant roles, it all worked.

---

<div class="post-metadata">

### Author: ![afgane](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/afgane/32/3796_2.png) [@afgane](https://forums.suse.com/u/afgane)
#### Post date: [June 15, 2018, 4:16pm UTC](https://forums.suse.com/t/cannot-see-namespaces-from-imported-cluster/10534/5 "2018-06-15T16:16:55Z")

</div>

We’ve run into this as well but on a single-host Rancher setup using `kubectl`. If I create a new namespace using `kubectl` kubeconfig supplied by Rancher and deploy a chart into it, it never shows up in Rancher. If I deploy the same chart into the `default` namespace, the pods show up.

---

<div class="post-metadata">

### Author: ![MrAmbiG](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/mrambig/32/7130_2.png) [@MrAmbiG](https://forums.suse.com/u/MrAmbiG)
#### Post date: [April 20, 2020, 2:24pm UTC](https://forums.suse.com/t/cannot-see-namespaces-from-imported-cluster/10534/6 "2020-04-20T14:24:13Z")

</div>

march 20, 2020. The bug still exists.  
Imported a rancher cluster into another rancher because the old one crashed (docker) but now I dont see any namespace, apps or workloads which were there before. I got 2 clusters, same behavior. Both clusters were created from rancher.

---

<div class="post-metadata">

### Author: ![ankit\_sharma](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/ankit_sharma/32/5062_2.png) [@ankit\_sharma](https://forums.suse.com/u/ankit_sharma)
#### Post date: [May 5, 2020, 6:17am UTC](https://forums.suse.com/t/cannot-see-namespaces-from-imported-cluster/10534/8 "2020-05-05T06:17:06Z")

</div>

Any update on it . I have imported my bare metal k8s cluster on Rancher . I have many application running on several different namespaces but on rancher I can only see default and system namespace under my project  
Do we any workaround to fix this issue

---

<div class="post-metadata">

### Author: ![cjellick](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/cjellick/32/2876_2.png) [@cjellick](https://forums.suse.com/u/cjellick)
#### Post date: [May 5, 2020, 8:59pm UTC](https://forums.suse.com/t/cannot-see-namespaces-from-imported-cluster/10534/9 "2020-05-05T20:59:43Z")

</div>

Have you added the pre-existing namespaces to a project? Should be able to do this from the Projects page.

---

<div class="post-metadata">

### Author: ![bill](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/bill/32/6505_2.png) [@bill](https://forums.suse.com/u/bill)
#### Post date: [July 28, 2020, 2:27am UTC](https://forums.suse.com/t/cannot-see-namespaces-from-imported-cluster/10534/10 "2020-07-28T02:27:42Z")

</div>

> [@thanethomson](#):
>
> [https://github.com/rancher/rancher/issues/13642](https://github.com/rancher/rancher/issues/13642)

My use case is, I enable kubernetes locally with `Docker for Mac` locally and create a namespace with kubectl command, but I can’t see it in Rancher

### Updates

I manually delete the import kubernetes cluster and import it again, now I can see all namespaces.

### Updates again

Got this error when move the namespaces to default project

```auto
	Cluster health check failed: Failed to communicate with API server: Get https://10.96.0.1:443/api/v1/namespaces/kube-system?timeout=30s: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers); waiting on cluster-agent-controller-cleanup

```

So I have to delete and apply again

```auto
curl --insecure -sfL https://192.168.1.107:32847/v3/import/xxxl.yaml | kubectl delete -f -

curl --insecure -sfL https://192.168.1.107:32847/v3/import/xxxl.yaml | kubectl apply -f -

```

Now I can add namespaces to default project properly
