apiVersion: v1
import "k8s.io/api/core/v1"
Secret 保存特定类型的加密数据。Data 字段中各值的总字节数必须小于 MaxSecretSize 字节。
apiVersion: v1
kind: Secret
metadata (ObjectMeta)
标准对象的元数据。更多信息:https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
data (map[string][]byte)
Data 包含加密数据。每个键必须由字母数字字符、'-'、'_' 或 '.' 组成。加密数据的序列化形式是一个 base64 编码的字符串,在此代表任意(可能是非字符串)数据值。详情请参考 https://tools.ietf.org/html/rfc4648#section-4
immutable (boolean)
如果设置为 true,则不可变性确保 Secret 中存储的数据无法更新(仅可修改对象元数据)。如果未设置为 true,则该字段可随时修改。默认为 nil。
stringData (map[string]string)
stringData 允许以字符串形式指定非二进制的加密数据。它是作为一种只写输入字段提供,以方便使用。写入时,所有键和值都会合并到 data 字段中,并覆盖任何现有值。从 API 读取时,永远不会输出 stringData 字段。
type (string)
用于促进对加密数据的程序化处理。更多信息:https://kubernetes.ac.cn/docs/concepts/configuration/secret/#secret-types
SecretList 是 Secret 的列表。
apiVersion: v1
kind: SecretList
metadata (ListMeta)
标准列表元数据。更多信息:https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
items ([]Secret), 必需
Items 是 Secret 对象的列表。更多信息:https://kubernetes.ac.cn/docs/concepts/configuration/secret
get 读取指定的 SecretGET /api/v1/namespaces/{namespace}/secrets/{name}
200 (Secret): OK
401: 未授权
list 列出或监视 Secret 类型的对象GET /api/v1/namespaces/{namespace}/secrets
namespace (在路径中): string, 必需
allowWatchBookmarks (in query): boolean
continue (in query): string
fieldSelector (in query): string
labelSelector (in query): string
limit (in query): integer
pretty (在查询中): string
resourceVersion (in query): string
resourceVersionMatch (in query): string
sendInitialEvents (in query): boolean
timeoutSeconds (in query): integer
watch (in query): boolean
200 (SecretList): OK
401: 未授权
list 列出或监视 Secret 类型的对象GET /api/v1/secrets
allowWatchBookmarks (in query): boolean
continue (in query): string
fieldSelector (in query): string
labelSelector (in query): string
limit (in query): integer
pretty (在查询中): string
resourceVersion (in query): string
resourceVersionMatch (in query): string
sendInitialEvents (in query): boolean
timeoutSeconds (in query): integer
watch (in query): boolean
200 (SecretList): OK
401: 未授权
create 创建一个 SecretPOST /api/v1/namespaces/{namespace}/secrets
namespace (在路径中): string, 必需
body: Secret, 必需
dryRun (在查询中): string
fieldManager (在查询中): string
fieldValidation (在查询中): string
pretty (在查询中): string
200 (Secret): OK
201 (Secret): Created
202 (Secret): Accepted
401: 未授权
update 替换指定的 SecretPUT /api/v1/namespaces/{namespace}/secrets/{name}
name (在路径中): string, 必需
Secret 的名称
namespace (在路径中): string, 必需
body: Secret, 必需
dryRun (在查询中): string
fieldManager (在查询中): string
fieldValidation (在查询中): string
pretty (在查询中): string
200 (Secret): OK
201 (Secret): Created
401: 未授权
patch 部分更新指定的 SecretPATCH /api/v1/namespaces/{namespace}/secrets/{name}
name (在路径中): string, 必需
Secret 的名称
namespace (在路径中): string, 必需
body: Patch, 必需
dryRun (在查询中): string
fieldManager (在查询中): string
fieldValidation (在查询中): string
force (in query): boolean
pretty (在查询中): string
200 (Secret): OK
201 (Secret): Created
401: 未授权
delete 删除一个 SecretDELETE /api/v1/namespaces/{namespace}/secrets/{name}
name (在路径中): string, 必需
Secret 的名称
namespace (在路径中): string, 必需
body: DeleteOptions
dryRun (在查询中): string
gracePeriodSeconds (in query): integer
ignoreStoreReadErrorWithClusterBreakingPotential (in query): boolean
pretty (在查询中): string
propagationPolicy (in query): string
200 (Status): 确定
202 (Status): 已接受
401: 未授权
deletecollection 删除 Secret 集合DELETE /api/v1/namespaces/{namespace}/secrets
namespace (在路径中): string, 必需
body: DeleteOptions
continue (in query): string
dryRun (在查询中): string
fieldSelector (in query): string
gracePeriodSeconds (in query): integer
ignoreStoreReadErrorWithClusterBreakingPotential (in query): boolean
labelSelector (in query): string
limit (in query): integer
pretty (在查询中): string
propagationPolicy (in query): string
resourceVersion (in query): string
resourceVersionMatch (in query): string
sendInitialEvents (in query): boolean
timeoutSeconds (in query): integer
200 (Status): 确定
401: 未授权
本页面是自动生成的。
如果您打算报告此页面的问题,请在您的问题描述中提及该页面是自动生成的。修复可能需要在 Kubernetes 项目的其他地方进行。