sync connecting-frontend-backend ingress-minikube service-access-application-cluster quota-api-object

pull/42519/head
xin gu 2023-08-13 11:03:39 +08:00
parent 5d2ad23b06
commit 7dbc80f1bd
4 changed files with 8 additions and 8 deletions

View File

@ -65,7 +65,7 @@ file for the backend Deployment:
后端是一个简单的 hello 欢迎微服务应用。这是后端应用的 Deployment 配置文件: 后端是一个简单的 hello 欢迎微服务应用。这是后端应用的 Deployment 配置文件:
{{< codenew file="service/access/backend-deployment.yaml" >}} {{% code file="service/access/backend-deployment.yaml" %}}
<!-- <!--
Create the backend Deployment: Create the backend Deployment:
@ -145,7 +145,7 @@ First, explore the Service configuration file:
首先,浏览 Service 的配置文件: 首先,浏览 Service 的配置文件:
{{< codenew file="service/access/backend-service.yaml" >}} {{% code file="service/access/backend-service.yaml" %}}
<!-- <!--
In the configuration file, you can see that the Service, named `hello` routes In the configuration file, you can see that the Service, named `hello` routes
@ -197,7 +197,7 @@ to proxy requests to the `hello` backend Service. Here is the nginx configuratio
前端 Deployment 中的 Pods 运行一个 nginx 镜像,这个已经配置好的镜像会将请求转发 前端 Deployment 中的 Pods 运行一个 nginx 镜像,这个已经配置好的镜像会将请求转发
给后端的 `hello` Service。下面是 nginx 的配置文件: 给后端的 `hello` Service。下面是 nginx 的配置文件:
{{< codenew file="service/access/frontend-nginx.conf" >}} {{% code file="service/access/frontend-nginx.conf" %}}
<!-- <!--
Similar to the backend, the frontend has a Deployment and a Service. An important Similar to the backend, the frontend has a Deployment and a Service. An important
@ -210,9 +210,9 @@ accessible from outside the cluster.
重要区别是前端 Service 的配置文件包含了 `type: LoadBalancer`也就是说Service 重要区别是前端 Service 的配置文件包含了 `type: LoadBalancer`也就是说Service
会使用你的云服务商的默认负载均衡设备,从而实现从集群外访问的目的。 会使用你的云服务商的默认负载均衡设备,从而实现从集群外访问的目的。
{{< codenew file="service/access/frontend-service.yaml" >}} {{% code file="service/access/frontend-service.yaml" %}}
{{< codenew file="service/access/frontend-deployment.yaml" >}} {{% code file="service/access/frontend-deployment.yaml" %}}
<!-- <!--

View File

@ -207,7 +207,7 @@ The following manifest defines an Ingress that sends traffic to your Service via
1. 根据下面的 YAML 创建文件 `example-ingress.yaml` 1. 根据下面的 YAML 创建文件 `example-ingress.yaml`
{{< codenew file="service/networking/example-ingress.yaml" >}} {{% code file="service/networking/example-ingress.yaml" %}}
<!-- <!--
1. Create the Ingress object by running the following command: 1. Create the Ingress object by running the following command:

View File

@ -45,7 +45,7 @@ Here is the configuration file for the application Deployment:
这是应用程序部署的配置文件: 这是应用程序部署的配置文件:
{{< codenew file="service/access/hello-application.yaml" >}} {{% code file="service/access/hello-application.yaml" %}}
<!-- <!--
1. Run a Hello World application in your cluster: 1. Run a Hello World application in your cluster:

View File

@ -141,7 +141,7 @@ Here is the configuration file for a second PersistentVolumeClaim:
下面是第二个 PersistentVolumeClaim 的配置文件: 下面是第二个 PersistentVolumeClaim 的配置文件:
{{< codenew file="admin/resource/quota-objects-pvc-2.yaml" >}} {{% code file="admin/resource/quota-objects-pvc-2.yaml" %}}
<!-- <!--
Attempt to create the second PersistentVolumeClaim: Attempt to create the second PersistentVolumeClaim: