Creating Projects via Kubernetes API

#1

Hi All,

Is there a way to create a Rancher Project and link a K8s Namespace to it via the Kubernetes API?

Alternatively, is there a way to do this through the Rancher API?

I know there is the Rancher CLI tool but the workflow engine I am using uses HTTP/S APIs natively

#2

Projects are a Rancher specific thing, and do not exist in Kubernetes.

You can create a project via the Rancher API. You can go to https://<your-rancher-host>/v3/projects/ And click the + Create button on the top right to see the parameters to create a project.

1 Like