File tree 3 files changed +5
-3
lines changed
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
67
67
2 . 获取容器 ` shell ` ,执行 ` ps ` :
68
68
69
69
``` shell
70
- kubectl attach -it nginx -c shell
70
+ kubectl exec -it nginx -c shell -- /bin/sh
71
71
```
72
72
73
73
<!--
Original file line number Diff line number Diff line change @@ -982,7 +982,7 @@ the Deployment and / or StatefulSet be removed from their
982
982
a change to that object is applied, for example via `kubectl apply -f
983
983
deployment.yaml`, this will instruct Kubernetes to scale the current number of Pods
984
984
to 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 .
986
986
-->
987
987
988
988
# ## 将 Deployment 和 StatefulSet 迁移到水平自动扩缩 {#migrating-deployments-and-statefulsets-to-horizontal-autoscaling}
@@ -991,7 +991,7 @@ desired and could be troublesome when an HPA is active.
991
991
Deployment 和/或 StatefulSet 的 `spec.replicas` 的值。
992
992
如果不这样做,则只要应用对该对象的更改,例如通过 `kubectl apply -f deployment.yaml`,
993
993
这将指示 Kubernetes 将当前 Pod 数量扩缩到 `spec.replicas` 键的值。这可能不是所希望的,
994
- 并且当 HPA 处于活动状态时可能会很麻烦 。
994
+ 并且当 HPA 处于活动状态时,可能会导致波动或反复变化的行为,进而带来麻烦 。
995
995
996
996
<!--
997
997
Keep 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 设置都使用的是不安全的默认值,这是因为我们想把重
54
54
- Some familiarity with MySQL helps, but this tutorial aims to present
55
55
general patterns that should be useful for other systems.
56
56
- 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.
57
58
-->
58
59
- 本教程假定你熟悉
59
60
[ PersistentVolumes] ( /zh-cn/docs/concepts/storage/persistent-volumes/ )
@@ -63,6 +64,7 @@ MySQL 设置都使用的是不安全的默认值,这是因为我们想把重
63
64
[ ConfigMap] ( /zh-cn/docs/tasks/configure-pod-container/configure-pod-configmap/ ) 。
64
65
- 熟悉 MySQL 会有所帮助,但是本教程旨在介绍对其他系统应该有用的常规模式。
65
66
- 你正在使用默认命名空间或不包含任何冲突对象的另一个命名空间。
67
+ - 你需要拥有一块兼容 AMD64 架构的 CPU。
66
68
67
69
## {{% heading "objectives" %}}
68
70
You can’t perform that action at this time.
0 commit comments