Skip to content

Commit ff4ebc4

Browse files
authored
update the yaml example based on review
1 parent 07fd1c6 commit ff4ebc4

File tree

1 file changed

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

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -546,11 +546,11 @@ spec:
546546
app: MyApp
547547
ports:
548548
- port: 80
549-
# By default and for convenience, the targetPort is set to the same value as the port field.
550549
targetPort: 80
551-
# `targetPort` is the port of pod, you would like to expose
552-
NodePort: 30007
553-
# `NodePort` is the port of node, you would like to expose
550+
# By default and for convenience, the `targetPort` is set to the same value as the `port` field.
551+
nodePort: 30007
552+
# Optional field
553+
# By default and for convenience, the Kubernetes control plane will allocates a port from a range (default: 30000-32767)
554554
```
555555

556556
### Type LoadBalancer {#loadbalancer}

0 commit comments

Comments
 (0)