Update service.md
parent
1fda1272a5
commit
94ec519f63
|
@ -545,12 +545,12 @@ spec:
|
||||||
selector:
|
selector:
|
||||||
app: MyApp
|
app: MyApp
|
||||||
ports:
|
ports:
|
||||||
|
# By default and for convenience, the `targetPort` is set to the same value as the `port` field.
|
||||||
- port: 80
|
- port: 80
|
||||||
targetPort: 80
|
targetPort: 80
|
||||||
# By default and for convenience, the `targetPort` is set to the same value as the `port` field.
|
|
||||||
nodePort: 30007
|
|
||||||
# Optional field
|
# Optional field
|
||||||
# By default and for convenience, the Kubernetes control plane will allocate a port from a range (default: 30000-32767)
|
# By default and for convenience, the Kubernetes control plane will allocate a port from a range (default: 30000-32767)
|
||||||
|
nodePort: 30007
|
||||||
```
|
```
|
||||||
|
|
||||||
### Type LoadBalancer {#loadbalancer}
|
### Type LoadBalancer {#loadbalancer}
|
||||||
|
|
Loading…
Reference in New Issue