Updating Namespaces

TOC

Updating Quotas

Resource Quota

Updating a Resource Quota by using web console

  1. Project Management, and navigate to Namespaces > Namespace List in the left sidebar.

  2. Click the target namespace name.

  3. Click Actions > Update Quota.

  4. Adjust resource quotas (CPU, Memory, Pods, etc.) and click Update.

Updating a Resource Quota by using CLI

Resource Quota YAML file example

# Step 1: Edit the namespace quota  
kubectl edit resourcequota <quota-name> -n <namespace-name>  

# Step 2: Verify changes  
kubectl get resourcequota <quota-name> -n <namespace-name> -o yaml  

Updating Container LimitRanges

Limit Range

Updating a LimitRange by using web console

  1. Project Management view, and navigate to Namespaces > Namespace List in the left sidebar.

  2. Click the target namespace name.

  3. Click Actions > Update Container LimitRange.

  4. Adjust container limit range (defaultRequest, default, max) and click Update.

Updating a LimitRange by using CLI

Limit Range YAML file example

# Step 1: Edit the LimitRange  
kubectl edit limitrange <limitrange-name> -n <namespace-name>  

# Step 2: Verify changes  
kubectl get limitrange <limitrange-name> -n <namespace-name> -o yaml  

Updating Pod Security Admission

Pod Security Admission

Updating a Pod Security Admission by using web console

  1. Project Management view, and navigate to Namespaces > Namespace List in the left sidebar.

  2. Click the target namespace name.

  3. Click Actions > Update Pod Security Admission.

  4. Adjust security standard (enforce, audit, warn) and click Update.

Updating a Pod Security Admission by using CLI

Update Pod Security Admission CLI command