Skip to content

Commit 94ec519

Browse files
authored
Update service.md
1 parent 1fda127 commit 94ec519

File tree

1 file changed

+2
-2
lines changed
  • content/en/docs/concepts/services-networking

1 file changed

+2
-2
lines changed

content/en/docs/concepts/services-networking/service.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -545,12 +545,12 @@ spec:
545545
selector:
546546
app: MyApp
547547
ports:
548+
# By default and for convenience, the `targetPort` is set to the same value as the `port` field.
548549
- port: 80
549550
targetPort: 80
550-
# By default and for convenience, the `targetPort` is set to the same value as the `port` field.
551-
nodePort: 30007
552551
# Optional field
553552
# By default and for convenience, the Kubernetes control plane will allocate a port from a range (default: 30000-32767)
553+
nodePort: 30007
554554
```
555555
556556
### Type LoadBalancer {#loadbalancer}

0 commit comments

Comments
 (0)