You can create namespaces to classify cluster resources that are used to complete different tasks. This topic describes how to create namespaces and configure resource quotas and limits in a Container Service for Kubernetes (ACK) cluster.
Prerequisites
- An ACK cluster is created. For more information, see Create an ACK managed cluster.
- A kubectl client is connected to the cluster. For more information, see Connect to a cluster by using kubectl.
Background information
- In an ACK cluster, you can create multiple namespaces as virtual clusters. If multiple users share a cluster, you can create namespaces to classify cluster resources that are used to complete different tasks and use resource quotas to limit resource allocation in the namespaces.
- By default, pods that are in the running state can consume the CPU and memory resources of nodes without limit. In this case, pods in a namespace may exhaust the resources of the cluster. Namespaces can be used as virtual clusters to serve multiple purposes. You can also configure resource quotas for namespaces as a best practice. You can configure multiple resource quotas for a namespace, including CPU, memory, and pod quotas. For more information, see Resource quotas.
Create a namespace
Configure resource quotas and limits
What to do next
After you create a namespace, you can perform the following operations on the Namespace page:
- Click Edit in the Actions column of the namespace to modify the labels of the namespace.
- Click the
icon in the Actions column of the namespace and then click Delete to delete the namespace. All resources in the namespace are deleted together with the namespace.