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
Copy file name to clipboardExpand all lines: content/zh/docs/concepts/workloads/controllers/cron-jobs.md
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -154,6 +154,14 @@ at least once.
154
154
如果 `startingDeadlineSeconds` 设置为很大的数值或未设置(默认),并且
155
155
`concurrencyPolicy` 设置为 `Allow`,则作业将始终至少运行一次。
156
156
157
+
{{< caution >}}
158
+
<!--
159
+
If `startingDeadlineSeconds` is set to a value less than 10 seconds, the CronJob may not be scheduled. This is because the CronJob controller checks things every 10 seconds.
For every CronJob, the CronJob {{< glossary_tooltip term_id="controller" >}} checks how many schedules it missed in the duration from its last scheduled time until now. If there are more than 100 missed schedules, then it does not start the job and logs the error
Copy file name to clipboardExpand all lines: content/zh/docs/concepts/workloads/controllers/replicaset.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -345,7 +345,7 @@ pod2 1/1 Running 0 36s
345
345
## Writing a ReplicaSet Spec
346
346
347
347
As with all other Kubernetes API objects, a ReplicaSet needs the `apiVersion`, `kind`, and `metadata` fields.
348
-
For ReplicaSets, the kind is always just ReplicaSet.
348
+
For ReplicaSets, the `kind` is always a ReplicaSet.
349
349
In Kubernetes 1.9 the API version `apps/v1` on the ReplicaSet kind is the current version and is enabled by default. The API version `apps/v1beta2` is deprecated.
350
350
Refer to the first lines of the `frontend.yaml` example for guidance.
351
351
@@ -357,7 +357,7 @@ A ReplicaSet also needs a [`.spec` section](https://git.k8s.io/community/contrib
357
357
## 编写 ReplicaSet 的 spec
358
358
359
359
与所有其他 Kubernetes API 对象一样,ReplicaSet 也需要 `apiVersion`、`kind`、和 `metadata` 字段。
360
-
对于 ReplicaSets 而言,其 kind 始终是 ReplicaSet。
360
+
对于 ReplicaSets 而言,其 `kind` 始终是 ReplicaSet。
361
361
在 Kubernetes 1.9 中,ReplicaSet 上的 API 版本 `apps/v1` 是其当前版本,且被
362
362
默认启用。API 版本 `apps/v1beta2` 已被废弃。
363
363
参考 `frontend.yaml` 示例的第一行。
@@ -375,7 +375,7 @@ The `.spec.template` is a [pod template](/docs/concepts/workloads/pods/#pod-temp
375
375
required to have labels in place. In our `frontend.yaml` example we had one label: `tier: frontend`.
376
376
Be careful not to overlap with the selectors of other controllers, lest they try to adopt this Pod.
377
377
378
-
For the template's [restart policy](/docs/concepts/workloads/Pods/pod-lifecycle/#restart-policy) field,
378
+
For the template's [restart policy](/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy) field,
379
379
`.spec.template.spec.restartPolicy`, the only allowed value is `Always`, which is the default.
当使用 REST API 或 go 客户端库时,只需删除 ReplicationController 对象。
338
+
当使用 REST API 或 Go 客户端库时,只需删除 ReplicationController 对象。
338
339
339
340
<!--
340
341
Once the original is deleted, you can create a new ReplicationController to replace it. As long
@@ -373,11 +374,13 @@ As mentioned above, whether you have 1 pod you want to keep running, or 1000, a
373
374
<!--
374
375
### Scaling
375
376
376
-
The ReplicationController makes it easy to scale the number of replicas up or down, either manually or by an auto-scaling control agent, by simply updating the `replicas` field.
377
+
The ReplicationController scales the number of replicas up or down by setting the `replicas` field.
378
+
You can configure the ReplicationController to manage the replicas manually or by an auto-scaling control agent.
@@ -463,11 +466,11 @@ Pods created by a ReplicationController are intended to be fungible and semantic
463
466
<!--
464
467
## Responsibilities of the ReplicationController
465
468
466
-
The ReplicationController simply ensures that the desired number of pods matches its label selector and are operational. Currently, only terminated pods are excluded from its count. In the future, [readiness](http://issue.k8s.io/620) and other information available from the system may be taken into account, we may add more controls over the replacement policy, and we plan to emit events that could be used by external clients to implement arbitrarily sophisticated replacement and/or scale-down policies.
469
+
The ReplicationController ensures that the desired number of pods matches its label selector and are operational. Currently, only terminated pods are excluded from its count. In the future, [readiness](http://issue.k8s.io/620) and other information available from the system may be taken into account, we may add more controls over the replacement policy, and we plan to emit events that could be used by external clients to implement arbitrarily sophisticated replacement and/or scale-down policies.
467
470
-->
468
471
## ReplicationController 的职责
469
472
470
-
ReplicationController 只需确保所需的 Pod 数量与其标签选择算符匹配,并且是可操作的。
473
+
ReplicationController 仅确保所需的 Pod 数量与其标签选择算符匹配,并且是可操作的。
0 commit comments