- Related issues: #1454 Incorrect memory unit conversion in namespace resource quota
Category:
- Rancher Integration
Environment setup
- Install the latest rancher from docker command
$ sudo docker run -d --restart=unless-stopped -p 80:80 -p 443:443 --privileged rancher/rancher:v2.6.3
Verification Steps
- Access Rancher dashboard
- Open Cluster management -> Explore the active cluster
- Create a new project test-1454-projin Projects/Namespaces
- Set resource quota for the project
- Memory Limit:
- Project Limit: 512
- Namespace default limit: 256
 
- Memory Reservation:
- Project Limit: 256
- Namespace default limit: 128
 
- Click create namespace test-1454-nsunder projecttest-1454-proj
- Click Kubectl Shelland run the following command
- kubectl get ns
- kubectl get quota -n test-1454-ns
- Check the output
- Click Workload->Deployments->Create
- Given the Name,NamespaceandContainer image 
- Click Create
Expected Results
Based on configured project resource limit and namespace default limit,
- The memory limit of 256 Megabytes and memory reservation of 128 Megabytes can be configured and applied to project correctly.


