This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
apiVersion:apps/v1
kind:Deployment
metadata:
labels:
app:gw-charge
tier:backend
name:gw-charge
namespace:yibin-charge
spec:
# Kubernetes 期望在 600 秒(即 10 分钟)内,Deployment 至少有一个 Pod 副本取得进展。
# 进展可以是 Pod 成功启动并运行,或者是 Deployment 达到其期望的副本数量。
progressDeadlineSeconds:600
# 这表示你希望有一个 Pod 副本始终处于运行状态。如果该 Pod 副本失败或被删除,Deployment 控制器将替换它,以确保始终有一个 Pod 副本运行。
# Deployment 控制器会确保在任何给定时间都有 replicas 指定数量的 Pod 副本在运行。如果 Pod 发生故障,Deployment 控制器将替换它,以维持所需的副本数量。