sách gpt4 ai đã đi

Kubernetes 部署 - 状态副本和规范副本之间的区别

In lại 作者:行者123 更新时间:2023-12-05 03:55:12 27 4
mua khóa gpt4 Nike

需要了解 kubernetes 部署中 kube_deployment_status_replicas 和 kube_deployment_spec_replicas 指标的区别

1 Câu trả lời

简而言之,区别在于实际状态与期望状态。

kube_deployment_status_replicas 表示每个部署的副本数。这是 Status.Replicas 的值。

TừAPI docs .

Total number of non-terminated pods targeted by this deployment (their labels match the selector).

kube_deployment_spec_replicas 表示部署所需的 pod 数量。这是 Spec.Replicas

的值

TừAPI docs .

Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1.

关于Kubernetes 部署 - 状态副本和规范副本之间的区别,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60333705/

27 4 0
行者123
Hồ sơ cá nhân

Tôi là một lập trình viên xuất sắc, rất giỏi!

Nhận phiếu giảm giá Didi Taxi miễn phí
Mã giảm giá Didi Taxi
Giấy chứng nhận ICP Bắc Kinh số 000000
Hợp tác quảng cáo: 1813099741@qq.com 6ren.com