# Kubectl create -f workload.yml

**URL:** https://forums.suse.com/t/kubectl-create-f-workload-yml/10445
**Category:** SUSE Rancher Prime
**Created:** [May 16, 2018, 8:49am UTC](https://forums.suse.com/t/kubectl-create-f-workload-yml/10445 "2018-05-16T08:49:30Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Guido\_Steiner](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/guido_steiner/32/5862_2.png) [@Guido\_Steiner](https://forums.suse.com/u/Guido_Steiner)
#### Post date: [May 16, 2018, 8:49am UTC](https://forums.suse.com/t/kubectl-create-f-workload-yml/10445/1 "2018-05-16T08:49:30Z")

</div>

when i create a workload with kubectl create -f workload.yml the namespace will be create “Not in a Project”.

Is there a trick or way how I can specify in which project the namespace should be created?

---

<div class="post-metadata">

### Author: ![Ryanbeta](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/ryanbeta/32/4281_2.png) [@Ryanbeta](https://forums.suse.com/u/Ryanbeta)
#### Post date: [May 17, 2018, 5:57am UTC](https://forums.suse.com/t/kubectl-create-f-workload-yml/10445/2 "2018-05-17T05:57:30Z")

</div>

I think you should check whether the cluster, project and namespaceId quoted in your yaml exists.

---

<div class="post-metadata">

### Author: ![vincent](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/vincent/32/7156_2.png) [@vincent](https://forums.suse.com/u/vincent)
#### Post date: [May 17, 2018, 6:29am UTC](https://forums.suse.com/t/kubectl-create-f-workload-yml/10445/3 "2018-05-17T06:29:22Z")

</div>

New namespaces created by kubectl are not automatically assigned to a project. There is not currently any way to tell it where they should go,

---

<div class="post-metadata">

### Author: ![Listener\_me](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/listener_me/32/5836_2.png) [@Listener\_me](https://forums.suse.com/u/Listener_me)
#### Post date: [March 3, 2019, 6:01pm UTC](https://forums.suse.com/t/kubectl-create-f-workload-yml/10445/4 "2019-03-03T18:01:39Z")

</div>

So we accidentally delete a workload from a Catalog App deployed through catalog in rancher 2.0, we wont be able to add it back to the same App, right? I can see no option to add it inside an App in the Catalog Apps section.

But if I try to upgrade the app by changing some variables, its gets created with same namsespace, project , but showing only inside workloads section of the Main tab named Workloads and not visible inside the upgraded catalogs App. Strange!
