File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed
Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ Process namespace sharing is enabled using the `shareProcessNamespace` field of
67672 . 获取容器 ` shell ` ,执行 ` ps ` :
6868
6969 ``` shell
70- kubectl attach -it nginx -c shell
70+ kubectl exec -it nginx -c shell -- /bin/sh
7171 ```
7272
7373 <!--
Original file line number Diff line number Diff line change @@ -982,7 +982,7 @@ the Deployment and / or StatefulSet be removed from their
982982a change to that object is applied, for example via `kubectl apply -f
983983deployment.yaml`, this will instruct Kubernetes to scale the current number of Pods
984984to the value of the `spec.replicas` key. This may not be
985- desired and could be troublesome when an HPA is active.
985+ desired and could be troublesome when an HPA is active, resulting in thrashing or flapping behavior .
986986-->
987987
988988# ## 将 Deployment 和 StatefulSet 迁移到水平自动扩缩 {#migrating-deployments-and-statefulsets-to-horizontal-autoscaling}
@@ -991,7 +991,7 @@ desired and could be troublesome when an HPA is active.
991991Deployment 和/或 StatefulSet 的 `spec.replicas` 的值。
992992如果不这样做,则只要应用对该对象的更改,例如通过 `kubectl apply -f deployment.yaml`,
993993这将指示 Kubernetes 将当前 Pod 数量扩缩到 `spec.replicas` 键的值。这可能不是所希望的,
994- 并且当 HPA 处于活动状态时可能会很麻烦 。
994+ 并且当 HPA 处于活动状态时,可能会导致波动或反复变化的行为,进而带来麻烦 。
995995
996996<!--
997997Keep in mind that the removal of `spec.replicas` may incur a one-time
Original file line number Diff line number Diff line change @@ -54,6 +54,7 @@ MySQL 设置都使用的是不安全的默认值,这是因为我们想把重
5454- Some familiarity with MySQL helps, but this tutorial aims to present
5555 general patterns that should be useful for other systems.
5656- You are using the default namespace or another namespace that does not contain any conflicting objects.
57+ - You need to have a AMD64-compatible CPU.
5758-->
5859- 本教程假定你熟悉
5960 [ PersistentVolumes] ( /zh-cn/docs/concepts/storage/persistent-volumes/ )
@@ -63,6 +64,7 @@ MySQL 设置都使用的是不安全的默认值,这是因为我们想把重
6364 [ ConfigMap] ( /zh-cn/docs/tasks/configure-pod-container/configure-pod-configmap/ ) 。
6465- 熟悉 MySQL 会有所帮助,但是本教程旨在介绍对其他系统应该有用的常规模式。
6566- 你正在使用默认命名空间或不包含任何冲突对象的另一个命名空间。
67+ - 你需要拥有一块兼容 AMD64 架构的 CPU。
6668
6769## {{% heading "objectives" %}}
6870
You can’t perform that action at this time.
0 commit comments