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 Managementoption from the left-hand menu. - Click on the
Explorebutton next to the cluster you want to deploy the resources to, which in our case is therke2-clustercluster. - Click on
Projects/Namespacesand click on theCreate Namespacebutton in theDefaultproject. - Give the namespace a name
todo-app-namespace. - Leave the
Container Resource Limit,Pod Security Admission, andLabels & Annotationswithout any changes. - Click on the
Createbutton 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 productionEnroll now to unlock all content and receive all future updates for free.
