File tree Expand file tree Collapse file tree 3 files changed +11
-5
lines changed Expand file tree Collapse file tree 3 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -705,15 +705,15 @@ TLS Secret 的一种典型用法是为 [Ingress](/zh-cn/docs/concepts/services-n
705
705
<!--
706
706
The TLS Secret type is provided only for convenience.
707
707
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 `)
709
709
helps ensure the consistency of Secret format in your project. The API server
710
710
verifies if the required keys are set for a Secret of this type.
711
711
712
712
To create a TLS Secret using `kubectl`, use the `tls` subcommand:
713
713
-->
714
714
提供 TLS 类型的 Secret 仅仅是出于方便性考虑。
715
715
你可以创建 ` Opaque ` 类型的 Secret 来保存用于 TLS 身份认证的凭据。
716
- 不过,使用已定义和公开的 Secret 类型有助于确保你自己项目中的 Secret 格式的一致性。
716
+ 不过,使用已定义和公开的 Secret 类型( ` kubernetes.io/tls ` )有助于确保你自己项目中的 Secret 格式的一致性。
717
717
API 服务器会验证这种类型的 Secret 是否设定了所需的主键。
718
718
719
719
要使用 ` kubectl ` 创建 TLS Secret,你可以使用 ` tls ` 子命令:
Original file line number Diff line number Diff line change @@ -700,7 +700,7 @@ kubectl logs my-pod # dump pod logs (stdout)
700
700
kubectl logs -l name=myLabel # dump pod logs, with label name=myLabel (stdout)
701
701
kubectl logs my-pod --previous # dump pod logs (stdout) for a previous instantiation of a container
702
702
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)
704
704
kubectl logs my-pod -c my-container --previous # dump pod container logs (stdout, multi-container case) for a previous instantiation of a container
705
705
kubectl logs -f my-pod # stream pod logs (stdout)
706
706
kubectl logs -f my-pod -c my-container # stream pod container logs (stdout, multi-container case)
Original file line number Diff line number Diff line change 1
- apiVersion : autoscaling/v1
1
+ apiVersion : autoscaling/v2
2
2
kind : HorizontalPodAutoscaler
3
3
metadata :
4
4
name : php-apache
9
9
name : php-apache
10
10
minReplicas : 1
11
11
maxReplicas : 10
12
- targetCPUUtilizationPercentage : 50
12
+ metrics :
13
+ - type : Resource
14
+ resource :
15
+ name : cpu
16
+ target :
17
+ type : Utilization
18
+ averageUtilization : 50
You can’t perform that action at this time.
0 commit comments