Kubernetes命名空间详解

目录

目标

版本

官网

概述

namespace(命名空间、名称空间)

注意事项

基本命令

查看namespace列表

查看所有Pod的namespace

查看单个Pod的namespace

查看同一个namespace下的所有Pod

查看单个namespace资源配额

查看单个Pod详情

查看所有namespace资源配额

创建namespace

删除namespace

资源配额


目标

        了解命名空间的使用场景和使用方法,通过案例实战理解命名空间对资源的逻辑隔离方法。


版本

Kubernets v1.25.0


官网

命名空间的基本概念icon-default.png?t=O83Ahttps://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/

Compute Resource Quotaicon-default.png?t=O83Ahttps://kubernetes.io/docs/concepts/policy/resource-quotas/

Resource Management for Pods and Containersicon-default.png?t=O83Ahttps://kubernetes.io/docs/concepts/configuration/manage-resources-containers/


概述

namespace(命名空间、名称空间)

官网定义

In Kubernetes, namespaces provide a mechanism for isolating groups of resources within a single cluster. Names of resources need to be unique within a namespace, but not across namespaces. Namespace-based scoping is applicable only for namespaced objects (e.g. Deployments, Services, etc.) and not for cluster-wide objects (e.g. StorageClass, Nodes, PersistentVolumes, etc.).

翻译

        在 Kubernetes 中,命名空间提供了

你可能感兴趣的:(Kubernetes,云原生,k8s资源配额,k8s命名空间,k8s限制资源,k8s名称空间)