website/content/zh-cn/docs/reference/glossary/namespace.md

46 lines
1.7 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: 名字空间Namespace
id: namespace
date: 2018-04-12
full_link: /zh-cn/docs/concepts/overview/working-with-objects/namespaces/
short_description: >
名字空间是 Kubernetes 用来支持隔离单个集群中的资源组的一种抽象。
aka:
tags:
- fundamental
---
<!--
---
title: Namespace
id: namespace
date: 2018-04-12
full_link: /docs/concepts/overview/working-with-objects/namespaces/
short_description: >
An abstraction used by Kubernetes to support isolation of groups of resources within a single cluster.
aka:
tags:
- fundamental
---
-->
<!--
An abstraction used by Kubernetes to support isolation of groups of resources within a single {{< glossary_tooltip text="cluster" term_id="cluster" >}}.
-->
名字空间是 Kubernetes 用来支持隔离单个 {{< glossary_tooltip text="集群" term_id="cluster" >}}中的资源组的一种抽象。
<!--more-->
<!--
Namespaces are used to organize objects in a cluster and provide a way to divide cluster resources. 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)_.
-->
名字空间用来组织集群中对象,并为集群资源划分提供了一种方法。
同一名字空间内的资源名称必须唯一,但跨名字空间时不作要求。
基于名字空间的作用域限定仅适用于名字空间作用域的对象(例如 Deployment、Services 等),
而不适用于集群作用域的对象(例如 StorageClass、Node、PersistentVolume 等)。
在一些文档里名字空间也称为命名空间。