Skip to content

Commit d2492b5

Browse files
committed
[zh-cn] sync secret cheatsheet php-apache.yaml
Signed-off-by: xin.li <[email protected]>
1 parent 82a9d87 commit d2492b5

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

content/zh-cn/docs/concepts/configuration/secret.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -705,15 +705,15 @@ TLS Secret 的一种典型用法是为 [Ingress](/zh-cn/docs/concepts/services-n
705705
<!--
706706
The TLS Secret type is provided only for convenience.
707707
You can create an `Opaque` type for credentials used for TLS authentication.
708-
However, using the defined and public Secret type (`kubernetes.io/ssh-auth`)
708+
However, using the defined and public Secret type (`kubernetes.io/tls`)
709709
helps ensure the consistency of Secret format in your project. The API server
710710
verifies if the required keys are set for a Secret of this type.
711711
712712
To create a TLS Secret using `kubectl`, use the `tls` subcommand:
713713
-->
714714
提供 TLS 类型的 Secret 仅仅是出于方便性考虑。
715715
你可以创建 `Opaque` 类型的 Secret 来保存用于 TLS 身份认证的凭据。
716-
不过,使用已定义和公开的 Secret 类型有助于确保你自己项目中的 Secret 格式的一致性。
716+
不过,使用已定义和公开的 Secret 类型(`kubernetes.io/tls`)有助于确保你自己项目中的 Secret 格式的一致性。
717717
API 服务器会验证这种类型的 Secret 是否设定了所需的主键。
718718

719719
要使用 `kubectl` 创建 TLS Secret,你可以使用 `tls` 子命令:

content/zh-cn/docs/reference/kubectl/cheatsheet.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -700,7 +700,7 @@ kubectl logs my-pod # dump pod logs (stdout)
700700
kubectl logs -l name=myLabel # dump pod logs, with label name=myLabel (stdout)
701701
kubectl logs my-pod --previous # dump pod logs (stdout) for a previous instantiation of a container
702702
kubectl logs my-pod -c my-container # dump pod container logs (stdout, multi-container case)
703-
kubectl logs -l name=myLabel -c my-container # dump pod logs, with label name=myLabel (stdout)
703+
kubectl logs -l name=myLabel -c my-container # dump pod container logs, with label name=myLabel (stdout)
704704
kubectl logs my-pod -c my-container --previous # dump pod container logs (stdout, multi-container case) for a previous instantiation of a container
705705
kubectl logs -f my-pod # stream pod logs (stdout)
706706
kubectl logs -f my-pod -c my-container # stream pod container logs (stdout, multi-container case)

content/zh-cn/examples/application/hpa/php-apache.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
apiVersion: autoscaling/v1
1+
apiVersion: autoscaling/v2
22
kind: HorizontalPodAutoscaler
33
metadata:
44
name: php-apache
@@ -9,4 +9,10 @@ spec:
99
name: php-apache
1010
minReplicas: 1
1111
maxReplicas: 10
12-
targetCPUUtilizationPercentage: 50
12+
metrics:
13+
- type: Resource
14+
resource:
15+
name: cpu
16+
target:
17+
type: Utilization
18+
averageUtilization: 50

0 commit comments

Comments
 (0)