Feedback

Chat Icon

End-to-End Kubernetes with Rancher, RKE2, K3s, Fleet, Longhorn, and NeuVector

The full journey from nothing to production

Deploying and Managing Workloads Using Rancher Manager - Part II
30%

Creating a Namespace

For our todo-app, we will create a namespace called todo-app-namespace.

To do this, follow these steps:

  • Navigate to the Rancher UI and select the Cluster Management option from the left-hand menu.
  • Click on the Explore button next to the cluster you want to deploy the resources to, which in our case is the rke2-cluster cluster.
  • Click on Projects/Namespaces and click on the Create Namespace button in the Default project.
  • Give the namespace a name todo-app-namespace.
  • Leave the Container Resource Limit, Pod Security Admission, and Labels & Annotations without any changes.
  • Click on the Create button to create the namespace.

Any resource created using the UI can also be created by editing the YAML file directly using the Edit as YAML option. This is an example of a namespace YAML file created using the UI:

apiVersion: v1
kind:

End-to-End Kubernetes with Rancher, RKE2, K3s, Fleet, Longhorn, and NeuVector

The full journey from nothing to production

Enroll now to unlock all content and receive all future updates for free.