Document name restrictions for multi-port services (#9282)

* Document name restrictions for multi-port services

Add note in documentation about port name restrictions.

* fix whitespace 

undo unrelated whitespace deletion
pull/9343/head^2
blaedj 2018-07-02 18:01:19 -07:00 committed by k8s-ci-robot
parent f53bc94d85
commit 2fbc23f9c2
1 changed files with 2 additions and 0 deletions

View File

@ -267,6 +267,8 @@ spec:
targetPort: 9377
```
Note that the port names must only contain lowercase alphanumeric characters and `-`, and must begin & end with an alphanumeric character. `123-abc` and `web` are valid, but `123_abc` and `-web` are not valid names.
## Choosing your own IP address
You can specify your own cluster IP address as part of a `Service` creation