Merge pull request #45414 from my-git9/patch-28304

[zh-cn]sync port-forward-access-application-cluster service-access-application-cluster scheduling-gpus
pull/45419/head
Kubernetes Prow Robot 2024-03-02 06:12:59 -08:00 committed by GitHub
commit 57020edf79
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 8 additions and 8 deletions

View File

@ -174,9 +174,9 @@ for database debugging.
```
<!--
27017 is the TCP port allocated to MongoDB on the internet.
27017 is the official TCP port for MongoDB.
-->
27017 是分配给 MongoDB 的互联网 TCP 端口。
27017 是 MongoDB 的官方 TCP 端口。
<!--
## Forward a local port to a port on the Pod

View File

@ -134,10 +134,10 @@ Here is the configuration file for the application Deployment:
```
<!--
Make a note of the NodePort value for the service. For example,
Make a note of the NodePort value for the Service. For example,
in the preceding output, the NodePort value is 31496.
-->
注意服务中的 NodePort 值。例如在上面的输出中NodePort 值是 31496。
注意 Service 中的 NodePort 值。例如在上面的输出中NodePort 值是 31496。
<!--
1. List the pods that are running the Hello World application:

View File

@ -167,12 +167,13 @@ plugin for NFD; check their documentation for more details.
更多细节请查阅他们的文档。
<!--
{{< highlight yaml "linenos=false,hl_lines=6-18" >}}
{{< highlight yaml "linenos=false,hl_lines=7-18" >}}
apiVersion: v1
kind: Pod
metadata:
name: example-vector-add
spec:
restartPolicy: OnFailure
# You can use Kubernetes node affinity to schedule this Pod onto a node
# that provides the kind of GPU that its container needs in order to work
affinity:
@ -185,7 +186,6 @@ spec:
values: ["40535"]
- key: "feature.node.kubernetes.io/pci-10.present" # NFD Feature label
values: ["true"] # (optional) only schedule on nodes with PCI device 10
restartPolicy: OnFailure
containers:
- name: example-vector-add
image: "registry.example/example-vector-add:v42"
@ -194,12 +194,13 @@ spec:
gpu-vendor.example/example-gpu: 1 # requesting 1 GPU
{{< /highlight >}}
-->
{{< highlight yaml "linenos=false,hl_lines=6-18" >}}
{{< highlight yaml "linenos=false,hl_lines=7-18" >}}
apiVersion: v1
kind: Pod
metadata:
name: example-vector-add
spec:
restartPolicy: OnFailure
# 你可以使用 Kubernetes 节点亲和性将此 Pod 调度到提供其容器所需的那种 GPU 的节点上
affinity:
nodeAffinity:
@ -211,7 +212,6 @@ spec:
values: ["40535"]
- key: "feature.node.kubernetes.io/pci-10.present" # NFD 特性标签
values: ["true"] #(可选)仅调度到具有 PCI 设备 10 的节点上
restartPolicy: OnFailure
containers:
- name: example-vector-add
image: "registry.example/example-vector-add:v42"