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
To illustrate this concept further, suppose a CronJob is set to schedule a new Job every one minute beginning at `08:30:00`, and its
@@ -214,22 +214,25 @@ the Job in turn is responsible for the management of the Pods it represents.
214
214
CronJob 仅负责创建与其调度时间相匹配的 Job,而 Job 又负责管理其代表的 Pod。
215
215
216
216
<!--
217
-
## New controller
218
-
219
-
There's an alternative implementation of the CronJob controller, available as an alpha feature since Kubernetes 1.20. To select version 2 of the CronJob controller, pass the following [feature gate](/docs/reference/command-line-tools-reference/feature-gates/) flag to the {{< glossary_tooltip term_id="kube-controller-manager" text="kube-controller-manager" >}}.
217
+
## Controller version {#new-controller}
220
218
221
-
```
222
-
--feature-gates="CronJobControllerV2=true"
223
-
```
219
+
Starting with Kubernetes v1.21 the second version of the CronJob controller
220
+
is the default implementation. To disable the default CronJob controller
221
+
and use the original CronJob controller instead, one pass the `CronJobControllerV2`
@@ -240,7 +243,8 @@ documents the format of CronJob `schedule` fields.
240
243
For instructions on creating and working with cron jobs, and for an example of a spec file for a cron job, see [Running automated tasks with cron jobs](/docs/tasks/job/automated-tasks-with-cron-jobs).
You can delete a ReplicaSet without affecting any of its Pods using [`kubectl delete`](/docs/reference/generated/kubectl/kubectl-commands#delete) with the `--cascade=orphan` option.
475
+
You can delete a ReplicaSet without affecting any of its Pods using [`kubectl delete`](/docs/reference/generated/kubectl/kubectl-commands#delete) with the `-cascade=orphan` option.
476
476
When using the REST API or the `client-go` library, you must set `propagationPolicy` to `Orphan`.
477
477
For example:
478
478
-->
@@ -531,6 +531,102 @@ ensures that a desired number of pods with a matching label selector are availab
0 commit comments