Update service.md

pull/19962/head
Alpha 2020-03-30 23:21:25 +08:00 committed by GitHub
parent 1fda1272a5
commit 94ec519f63
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -545,12 +545,12 @@ spec:
selector:
app: MyApp
ports:
# By default and for convenience, the `targetPort` is set to the same value as the `port` field.
- port: 80
targetPort: 80
# 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 allocate a port from a range (default: 30000-32767)
nodePort: 30007
```
### Type LoadBalancer {#loadbalancer}