×

GET /v1/export/deployments

描述

参数

查询参数

名称 描述 必填 默认值 模式

超时时间

-

查询

-

内容类型

  • application/json

响应

表 1. HTTP 响应代码
代码 消息 数据类型

200

成功的响应。(流式响应)

Stream_result_of_v1ExportDeploymentResponse

0

意外的错误响应。

GooglerpcStatus

示例

常用对象引用

ContainerConfigEnvironmentConfig

字段名称 必填 可为空 类型 描述 格式

字符串

字符串

envVarSource

EnvironmentConfigEnvVarSource

UNSET, RAW, SECRET_KEY, CONFIG_MAP_KEY, FIELD, RESOURCE_FIELD, UNKNOWN,

EnvironmentConfigEnvVarSource

For any update to EnvVarSource, please also update 'ui/src/messages/common.js'
枚举值

UNSET

RAW

SECRET_KEY

CONFIG_MAP_KEY

FIELD

RESOURCE_FIELD

UNKNOWN

GooglerpcStatus

字段名称 必填 可为空 类型 描述 格式

代码

整数

int32

消息

字符串

详情

ProtobufAny 列表

PortConfigExposureInfo

字段名称 必填 可为空 类型 描述 格式

级别

PortConfigExposureLevel

未设置 (UNSET), 外部 (EXTERNAL), 节点 (NODE), 内部 (INTERNAL), 主机 (HOST), 路由 (ROUTE),

serviceName

字符串

serviceId

字符串

serviceClusterIp

字符串

servicePort

整数

int32

nodePort

整数

int32

externalIps

string 列表

externalHostnames

string 列表

PortConfigExposureLevel

枚举值

UNSET

EXTERNAL (外部)

NODE (节点)

INTERNAL (内部)

HOST (主机)

ROUTE (路由)

ProtobufAny

Any包含任意序列化的协议缓冲区消息以及描述序列化消息类型的URL。

Protobuf库提供支持,以实用函数或Any类型的附加生成方法的形式打包/解包Any值。

示例1:在C++中打包和解包消息。

Foo foo = ...;
Any any;
any.PackFrom(foo);
...
if (any.UnpackTo(&foo)) {
  ...
}

示例2:在Java中打包和解包消息。

Foo foo = ...;
Any any = Any.pack(foo);
...
if (any.is(Foo.class)) {
  foo = any.unpack(Foo.class);
}
// or ...
if (any.isSameTypeAs(Foo.getDefaultInstance())) {
  foo = any.unpack(Foo.getDefaultInstance());
}
Example 3: Pack and unpack a message in Python.
foo = Foo(...)
any = Any()
any.Pack(foo)
...
if any.Is(Foo.DESCRIPTOR):
  any.Unpack(foo)
  ...
Example 4: Pack and unpack a message in Go
foo := &pb.Foo{...}
any, err := anypb.New(foo)
if err != nil {
  ...
}
...
foo := &pb.Foo{}
if err := any.UnmarshalTo(foo); err != nil {
  ...
}

Protobuf库提供的打包方法默认使用'type.googleapis.com/full.type.name'作为类型URL,解包方法仅使用类型URL中最后一个'/'之后的完全限定类型名称,例如"foo.bar.com/x/y.z"将产生类型名称"y.z"。

JSON表示

Any值的JSON表示使用反序列化的嵌入式消息的常规表示,并添加一个包含类型URL的附加字段@type。示例

package google.profile;
message Person {
  string first_name = 1;
  string last_name = 2;
}
{
  "@type": "type.googleapis.com/google.profile.Person",
  "firstName": <string>,
  "lastName": <string>
}

如果嵌入式消息类型是众所周知的并且具有自定义JSON表示,则该表示将被嵌入,添加一个包含自定义JSON的字段value以及@type字段。示例(对于消息[google.protobuf.Duration][])

{
  "@type": "type.googleapis.com/google.protobuf.Duration",
  "value": "1.212s"
}
字段名称 必填 可为空 类型 描述 格式

@type

字符串

一个唯一标识序列化协议缓冲区消息类型的URL/资源名称。此字符串必须包含至少一个“/”字符。URL路径的最后一部分必须表示类型的完全限定名称(如path/google.protobuf.Duration)。名称应采用规范形式(例如,不接受前导“.”)。实际上,团队通常会将他们期望在Any上下文中使用的所有类型预编译到二进制文件中。但是,对于使用方案httphttps或无方案的URL,可以选择设置一个类型服务器,该服务器将类型URL映射到消息定义,如下所示:* 如果没有提供方案,则假定为https。* 对URL的HTTP GET必须产生二进制格式的[google.protobuf.Type][]值,或产生错误。* 应用程序可以根据URL缓存查找结果,或者将它们预编译到二进制文件中以避免任何查找。因此,需要在更改类型时保留二进制兼容性。(使用版本化的类型名称来管理重大更改。)注意:此功能当前在官方protobuf版本中不可用,并且不用于以type.googleapis.com开头的类型URL。截至2023年5月,没有广泛使用的类型服务器实现,也没有计划实现一个。除了httphttps(或空方案)之外的方案可能会与实现特定的语义一起使用。

SeccompProfileProfileType

枚举值

不受限制 (UNCONFINED)

运行时默认 (RUNTIME_DEFAULT)

本地主机 (LOCALHOST)

SecurityContextSELinux

字段名称 必填 可为空 类型 描述 格式

用户 (user)

字符串

角色 (role)

字符串

类型 (type)

字符串

级别

字符串

SecurityContextSeccompProfile

字段名称 必填 可为空 类型 描述 格式

类型 (type)

SeccompProfileProfileType

不受限制 (UNCONFINED), 运行时默认 (RUNTIME_DEFAULT), 本地主机 (LOCALHOST),

localhostProfile

字符串

StorageContainer

字段名称 必填 可为空 类型 描述 格式

id

字符串

配置 (config)

StorageContainerConfig

镜像 (image)

StorageContainerImage

安全上下文 (securityContext)

StorageSecurityContext

卷 (volumes)

StorageVolume 列表

端口 (ports)

StoragePortConfig 列表

密钥 (secrets)

StorageEmbeddedSecret 列表

资源 (resources)

StorageResources

名称 (name)

字符串

存活性探针 (livenessProbe)

StorageLivenessProbe

就绪性探针 (readinessProbe)

StorageReadinessProbe

StorageContainerConfig

字段名称 必填 可为空 类型 描述 格式

环境变量 (env)

ContainerConfigEnvironmentConfig 列表

命令 (command)

string 列表

参数 (args)

string 列表

目录 (directory)

字符串

用户 (user)

字符串

用户ID (uid)

字符串

int64

AppArmor配置文件 (appArmorProfile)

字符串

StorageContainerImage

Next tag: 12
字段名称 必填 可为空 类型 描述 格式

id

字符串

名称 (name)

StorageImageName

不可拉取 (notPullable)

布尔值 (Boolean)

集群本地 (isClusterLocal)

布尔值 (Boolean)

StorageDeployment

Next available tag: 36
字段名称 必填 可为空 类型 描述 格式

id

字符串

名称 (name)

字符串

哈希值 (hash)

字符串

uint64

类型 (type)

字符串

命名空间 (namespace)

字符串

命名空间ID (namespaceId)

字符串

协调器组件 (orchestratorComponent)

布尔值 (Boolean)

副本数 (replicas)

字符串

int64

标签 (labels)

string 映射

Pod标签 (podLabels)

string 映射

标签选择器 (labelSelector)

StorageLabelSelector

创建时间 (created)

日期 (Date)

日期时间 (date-time)

集群ID (clusterId)

字符串

集群名称 (clusterName)

字符串

容器 (containers)

StorageContainer 列表

注释 (annotations)

string 映射

优先级 (priority)

字符串

int64

非活动 (inactive)

布尔值 (Boolean)

镜像拉取密钥 (imagePullSecrets)

string 列表

服务账号 (serviceAccount)

字符串

服务账号权限级别 (serviceAccountPermissionLevel)

StoragePermissionLevel

未设置 (UNSET), 无 (NONE), 默认 (DEFAULT), 命名空间内提升 (ELEVATED_IN_NAMESPACE), 集群范围提升 (ELEVATED_CLUSTER_WIDE), 集群管理员 (CLUSTER_ADMIN),

自动挂载服务帐户令牌 (automountServiceAccountToken)

布尔值 (Boolean)

主机网络 (hostNetwork)

布尔值 (Boolean)

主机PID (hostPid)

布尔值 (Boolean)

主机IPC (hostIpc)

布尔值 (Boolean)

运行时类 (runtimeClass)

字符串

容忍度 (tolerations)

StorageToleration 列表

端口 (ports)

StoragePortConfig 列表

状态时间戳 (stateTimestamp)

字符串

int64

风险分数 (riskScore)

浮点数 (Float)

浮点数 (float)

平台组件 (platformComponent)

布尔值 (Boolean)

StorageEmbeddedSecret

字段名称 必填 可为空 类型 描述 格式

名称 (name)

字符串

路径 (path)

字符串

StorageImageName

字段名称 必填 可为空 类型 描述 格式

注册表 (registry)

字符串

远程 (remote)

字符串

标签 (tag)

字符串

完整名称 (fullName)

字符串

StorageLabelSelector

Label selector components are joined with logical AND, see     http://kubernetes.ac.cn/docs/concepts/overview/working-with-objects/labels/

下一个可用标签:3

字段名称 必填 可为空 类型 描述 格式

匹配标签 (matchLabels)

string 映射

这实际上是一个oneof,但由于向后兼容性限制,我们无法将其设为oneof。

需求 (requirements)

StorageLabelSelectorRequirement 列表

StorageLabelSelectorOperator

枚举值

UNKNOWN

包含 (IN)

不包含 (NOT_IN)

存在 (EXISTS)

不存在 (NOT_EXISTS)

StorageLabelSelectorRequirement

Next available tag: 4
字段名称 必填 可为空 类型 描述 格式

字符串

操作符 (op)

StorageLabelSelectorOperator

未知 (UNKNOWN), 包含 (IN), 不包含 (NOT_IN), 存在 (EXISTS), 不存在 (NOT_EXISTS),

值 (values)

string 列表

StorageLivenessProbe

字段名称 必填 可为空 类型 描述 格式

已定义 (defined)

布尔值 (Boolean)

StoragePermissionLevel

For any update to PermissionLevel, also update: - pkg/searchbasedpolicies/builders/k8s_rbac.go - ui/src/messages/common.js
枚举值

UNSET

无 (NONE)

默认 (DEFAULT)

命名空间内提升 (ELEVATED_IN_NAMESPACE)

集群范围提升 (ELEVATED_CLUSTER_WIDE)

集群管理员 (CLUSTER_ADMIN)

StoragePortConfig

Next Available Tag: 6
字段名称 必填 可为空 类型 描述 格式

名称 (name)

字符串

容器端口 (containerPort)

整数

int32

协议 (protocol)

字符串

暴露方式 (exposure)

PortConfigExposureLevel

未设置 (UNSET), 外部 (EXTERNAL), 节点 (NODE), 内部 (INTERNAL), 主机 (HOST), 路由 (ROUTE),

暴露端口 (exposedPort)

整数

int32

暴露信息 (exposureInfos)

PortConfigExposureInfo 列表

StorageReadinessProbe

字段名称 必填 可为空 类型 描述 格式

已定义 (defined)

布尔值 (Boolean)

StorageResources

字段名称 必填 可为空 类型 描述 格式

CPU核心请求 (cpuCoresRequest)

浮点数 (Float)

浮点数 (float)

CPU核心限制 (cpuCoresLimit)

浮点数 (Float)

浮点数 (float)

内存MB请求 (memoryMbRequest)

浮点数 (Float)

浮点数 (float)

内存MB限制 (memoryMbLimit)

浮点数 (Float)

浮点数 (float)

StorageSecurityContext

字段名称 必填 可为空 类型 描述 格式

特权 (privileged)

布尔值 (Boolean)

SELinux (selinux)

SecurityContextSELinux

删除功能 (dropCapabilities)

string 列表

添加功能 (addCapabilities)

string 列表

只读根文件系统 (readOnlyRootFilesystem)

布尔值 (Boolean)

Seccomp配置文件 (seccompProfile)

SecurityContextSeccompProfile

允许权限提升 (allowPrivilegeEscalation)

布尔值 (Boolean)

StorageTaintEffect

枚举值

未知污点效果 (UNKNOWN_TAINT_EFFECT)

禁止调度污点效果 (NO_SCHEDULE_TAINT_EFFECT)

优先禁止调度污点效果 (PREFER_NO_SCHEDULE_TAINT_EFFECT)

禁止执行污点效果 (NO_EXECUTE_TAINT_EFFECT)

StorageToleration

字段名称 必填 可为空 类型 描述 格式

字符串

操作符 (operator)

StorageTolerationOperator

未知容忍操作 (TOLERATION_OPERATION_UNKNOWN), 存在容忍操作符 (TOLERATION_OPERATOR_EXISTS), 等于容忍操作符 (TOLERATION_OPERATOR_EQUAL),

字符串

污点效果 (taintEffect)

StorageTaintEffect

未知污点效果 (UNKNOWN_TAINT_EFFECT), 禁止调度污点效果 (NO_SCHEDULE_TAINT_EFFECT), 优先禁止调度污点效果 (PREFER_NO_SCHEDULE_TAINT_EFFECT), 禁止执行污点效果 (NO_EXECUTE_TAINT_EFFECT),

StorageTolerationOperator

枚举值

未知容忍操作 (TOLERATION_OPERATION_UNKNOWN)

存在容忍操作符 (TOLERATION_OPERATOR_EXISTS)

等于容忍操作符 (TOLERATION_OPERATOR_EQUAL)

StorageVolume

字段名称 必填 可为空 类型 描述 格式

名称 (name)

字符串

源 (source)

字符串

目标 (destination)

字符串

只读 (readOnly)

布尔值 (Boolean)

类型 (type)

字符串

挂载传播 (mountPropagation)

VolumeMountPropagation

无 (NONE), 主机到容器 (HOST_TO_CONTAINER), 双向 (BIDIRECTIONAL),

StreamResultOfV1ExportDeploymentResponse

Stream result of v1ExportDeploymentResponse
字段名称 必填 可为空 类型 描述 格式

结果 (result)

V1ExportDeploymentResponse

错误 (error)

GooglerpcStatus

V1ExportDeploymentResponse

字段名称 必填 可为空 类型 描述 格式

部署

存储部署

卷挂载传播

枚举值

无 (NONE)

主机到容器

双向