update the yaml example based on review

pull/19999/head
Alpha 2020-03-30 13:28:22 +08:00 committed by bryan
parent d32b5a3f9e
commit c1425fd4ca
1 changed files with 4 additions and 4 deletions

View File

@ -546,11 +546,11 @@ spec:
app: MyApp
ports:
- port: 80
# By default and for convenience, the targetPort is set to the same value as the port field.
targetPort: 80
# `targetPort` is the port of pod, you would like to expose
NodePort: 30007
# `NodePort` is the port of node, you would like to expose
# By default and for convenience, the `targetPort` is set to the same value as the `port` field.
nodePort: 30007
# Optional field
# By default and for convenience, the Kubernetes control plane will allocates a port from a range (default: 30000-32767)
```
### Type LoadBalancer {#loadbalancer}