You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Once the deadline has been exceeded, the Deployment controller adds a DeploymentCondition with the following
903
921
attributes to the Deployment's `.status.conditions`:
904
922
905
-
* Type=Progressing
906
-
* Status=False
907
-
* Reason=ProgressDeadlineExceeded
923
+
*`type: Progressing`
924
+
*`status: "False"`
925
+
*`reason: ProgressDeadlineExceeded`
926
+
927
+
This condition can also fail early and is thenset to status value of `"False"` due to reasons as `ReplicaSetCreateError`.
928
+
Also, the deadline is not taken into account anymore once the Deployment rollout completes.
908
929
909
930
See the [Kubernetes API conventions](https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#typical-status-properties) for more information on status conditions.
910
931
911
932
{{< note >}}
912
933
Kubernetes takes no action on a stalled Deployment other than to report a status condition with
913
-
`Reason=ProgressDeadlineExceeded`. Higher level orchestrators can take advantage of it and act accordingly, for
934
+
`reason: ProgressDeadlineExceeded`. Higher level orchestrators can take advantage of it and act accordingly, for
914
935
example, rollback the Deployment to its previous version.
915
936
{{< /note >}}
916
937
@@ -984,7 +1005,7 @@ Conditions:
984
1005
You can address an issue of insufficient quota by scaling down your Deployment, by scaling down other
985
1006
controllers you may be running, or by increasing quota in your namespace. If you satisfy the quota
986
1007
conditions and the Deployment controller then completes the Deployment rollout, you'll see the
987
-
Deployment's status update with a successful condition (`Status=True` and `Reason=NewReplicaSetAvailable`).
1008
+
Deployment's status update with a successful condition (`status: "True"` and `reason: NewReplicaSetAvailable`).
988
1009
989
1010
```
990
1011
Conditions:
@@ -994,11 +1015,11 @@ Conditions:
994
1015
Progressing True NewReplicaSetAvailable
995
1016
```
996
1017
997
-
`Type=Available` with `Status=True` means that your Deployment has minimum availability. Minimum availability is dictated
998
-
by the parameters specified in the deployment strategy. `Type=Progressing` with `Status=True` means that your Deployment
1018
+
`type: Available` with `status: "True"` means that your Deployment has minimum availability. Minimum availability is dictated
1019
+
by the parameters specified in the deployment strategy. `type: Progressing` with `status: "True"` means that your Deployment
999
1020
is either in the middle of a rollout and it is progressing or that it has successfully completed its progress and the minimum
1000
1021
required new replicas are available (see the Reason of the condition for the particulars - in our case
1001
-
`Reason=NewReplicaSetAvailable` means that the Deployment is complete).
1022
+
`reason: NewReplicaSetAvailable` means that the Deployment is complete).
1002
1023
1003
1024
You can check if a Deployment has failed to progress by using `kubectl rollout status`. `kubectl rollout status`
1004
1025
returns a non-zero exit code if the Deployment has exceeded the progression deadline.
@@ -1155,8 +1176,8 @@ total number of Pods running at any time during the update is at most 130% of de
1155
1176
1156
1177
`.spec.progressDeadlineSeconds` is an optional field that specifies the number of seconds you want
1157
1178
to wait for your Deployment to progress before the system reports back that the Deployment has
1158
-
[failed progressing](#failed-deployment) - surfaced as a condition with `Type=Progressing`, `Status=False`.
1159
-
and `Reason=ProgressDeadlineExceeded` in the status of the resource. The Deployment controller will keep
1179
+
[failed progressing](#failed-deployment) - surfaced as a condition with `type: Progressing`, `status: "False"`.
1180
+
and `reason: ProgressDeadlineExceeded` in the status of the resource. The Deployment controller will keep
1160
1181
retrying the Deployment. This defaults to 600. In the future, once automatic rollback will be implemented, the Deployment
1161
1182
controller will roll back a Deployment as soon as it observes such a condition.
0 commit comments