---
title: "获取Deployment滚动发布状态"
method: GET
path: "/k8s/cluster/{id}/namespaces/{namespaceName}/deployments/{deploymentName}/rollout-status"
tags: ["Deployment版本管理"]
---

# 获取Deployment滚动发布状态

`GET /k8s/cluster/{id}/namespaces/{namespaceName}/deployments/{deploymentName}/rollout-status`

获取指定Deployment的当前滚动发布状态和进度信息

## Path parameters

- `id` integer, required
- `namespaceName` string, required
- `deploymentName` string, required

## Headers

- `Authorization` string, required

## Response `200`

OK

- object
  - `code` integer — 状态码
  - `data` object — 返回的数据
    - `availableReplicas` integer — 可用副本数
    - `conditions` ModelWorkloadCondition[] — 状态条件
      - `lastTransitionTime` string — 最后转换时间
      - `message` string — 消息
      - `reason` string — 原因
      - `status` string — 状态
      - `type` string — 条件类型
    - `currentRevision` integer — 当前版本号
    - `deploymentName` string — Deployment名称
    - `namespace` string — 命名空间
    - `observedGeneration` integer — 观察到的代数
    - `paused` boolean — 是否已暂停
    - `progressDeadline` integer — 进度截止时间
    - `readyReplicas` integer — 就绪副本数
    - `rolloutComplete` boolean — 是否滚动发布完成
    - `status` string — 总体状态 (Progressing/Complete/Failed/Paused)
    - `strategy` ModelDeploymentStrategy
      - `rollingUpdate` ModelRollingUpdateDeployment
        - `maxSurge` string — 最大激增数量
        - `maxUnavailable` string — 最大不可用数量
      - `type` string — 策略类型
    - `updatedReplicas` integer — 已更新副本数
  - `message` string — 提示信息

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `404` — Not Found
- `500` — Internal Server Error

---

[API](https://skmtc.dev/opsre/apis/devops.md) · [All operations](https://skmtc.dev/opsre/apis/devops/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/opsre/devops/revisions/25cac8835c4c/schema)
