fix code format (#12925)

This commit is contained in:
JarHMJ 2023-03-23 16:56:33 +08:00 committed by GitHub
parent aaec299881
commit e15d427d4c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 30 additions and 30 deletions

View File

@ -129,8 +129,8 @@ spec:
credentialName: httpbin-credential # must be the same as secret credentialName: httpbin-credential # must be the same as secret
hosts: hosts:
- httpbin.example.com - httpbin.example.com
EOF EOF
{{< /text >}} {{< /text >}}
接下来,通过定义相应的虚拟服务来配置网关的入口流量路由: 接下来,通过定义相应的虚拟服务来配置网关的入口流量路由:
@ -156,8 +156,8 @@ spec:
port: port:
number: 8000 number: 8000
host: httpbin host: httpbin
EOF EOF
{{< /text >}} {{< /text >}}
最后,按照[这些说明](/zh/docs/tasks/traffic-management/ingress/ingress-control/#determining-the-ingress-ip-and-ports)设置访问网关的 `INGRESS_HOST``SECURE_INGRESS_PORT` 变量。 最后,按照[这些说明](/zh/docs/tasks/traffic-management/ingress/ingress-control/#determining-the-ingress-ip-and-ports)设置访问网关的 `INGRESS_HOST``SECURE_INGRESS_PORT` 变量。
@ -191,8 +191,8 @@ spec:
selector: selector:
matchLabels: matchLabels:
kubernetes.io/metadata.name: default kubernetes.io/metadata.name: default
EOF EOF
{{< /text >}} {{< /text >}}
接下来,通过定义相应的 `HTTPRoute` 配置网关的入口流量路由: 接下来,通过定义相应的 `HTTPRoute` 配置网关的入口流量路由:
@ -218,8 +218,8 @@ spec:
backendRefs: backendRefs:
- name: httpbin - name: httpbin
port: 8000 port: 8000
EOF EOF
{{< /text >}} {{< /text >}}
最后,从 `Gateway` 资源中获取网关地址和端口: 最后,从 `Gateway` 资源中获取网关地址和端口:
@ -358,8 +358,8 @@ spec:
credentialName: helloworld-credential credentialName: helloworld-credential
hosts: hosts:
- helloworld.example.com - helloworld.example.com
EOF EOF
{{< /text >}} {{< /text >}}
通过定义相应的虚拟服务来配置网关的流量路由。 通过定义相应的虚拟服务来配置网关的流量路由。
@ -383,8 +383,8 @@ spec:
host: helloworld host: helloworld
port: port:
number: 5000 number: 5000
EOF EOF
{{< /text >}} {{< /text >}}
{{< /tab >}} {{< /tab >}}
@ -431,8 +431,8 @@ spec:
selector: selector:
matchLabels: matchLabels:
kubernetes.io/metadata.name: default kubernetes.io/metadata.name: default
EOF EOF
{{< /text >}} {{< /text >}}
`helloworld` 服务配置网关的流量路由: `helloworld` 服务配置网关的流量路由:
@ -455,8 +455,8 @@ spec:
backendRefs: backendRefs:
- name: helloworld - name: helloworld
port: 5000 port: 5000
EOF EOF
{{< /text >}} {{< /text >}}
{{< /tab >}} {{< /tab >}}
@ -530,8 +530,8 @@ spec:
credentialName: httpbin-credential # must be the same as secret credentialName: httpbin-credential # must be the same as secret
hosts: hosts:
- httpbin.example.com - httpbin.example.com
EOF EOF
{{< /text >}} {{< /text >}}
{{< /tab >}} {{< /tab >}}
@ -566,8 +566,8 @@ spec:
selector: selector:
matchLabels: matchLabels:
kubernetes.io/metadata.name: default kubernetes.io/metadata.name: default
EOF EOF
{{< /text >}} {{< /text >}}
{{< /tab >}} {{< /tab >}}
@ -616,10 +616,10 @@ spec:
Istio 支持读取几种不同的 Secret 格式,以支持与各种工具的集成,例如 [cert-manager](/zh/docs/ops/integrations/certmanager/) Istio 支持读取几种不同的 Secret 格式,以支持与各种工具的集成,例如 [cert-manager](/zh/docs/ops/integrations/certmanager/)
- 带有 `tls.key``tls.crt` 的 TLS Secret如上所述。对于双向 TLS`ca.crt` 可以作为密钥。 * 带有 `tls.key``tls.crt` 的 TLS Secret如上所述。对于双向 TLS`ca.crt` 可以作为密钥。
- 带有 `key``cert` 键的通用 Secret。对于双向 TLS`cacert` 可以作为密钥。 * 带有 `key``cert` 键的通用 Secret。对于双向 TLS`cacert` 可以作为密钥。
- 带有 `key``cert` 键的通用 Secret。对于双向 TLS名为 `<secret>-cacert` 的带有 `cacert` 键的通用 Secret。例如`httpbin-credential` 有 `key``cert``httpbin-credential-cacert` 有 `cacert` * 带有 `key``cert` 键的通用 Secret。对于双向 TLS名为 `<secret>-cacert` 的带有 `cacert` 键的通用 Secret。例如`httpbin-credential` 有 `key``cert``httpbin-credential-cacert` 有 `cacert`
- `cacert` 键值可以是一个 CA 捆绑包,由串联的各个 CA 证书组成。 * `cacert` 键值可以是一个 CA 捆绑包,由串联的各个 CA 证书组成。
### SNI 路由 {#sni-routing} ### SNI 路由 {#sni-routing}