issues about service config
caitong93 opened this issue · comments
Tong Cai commented
some issues:
- should support multi-port
- allow random node port
below is a example format
name: string
// True to create NodePort service
nodePort: bool
portMapping:
- port: int
targetPort: int
protocol: string
# range [30000,32767], 0 to use random port
nodePort: int
@kdada PTAL
Deyuan Deng commented
Is nodePort: bool
necessary?
- If nodePort is required and user wants to set it himself, he can give it a value
- If nodePort is required and he wants a random value, then set it to 0
- If not required, then leave out this field entirely
It seems to me that multi-port will severely complicate service config @kdada to confirm; but several applications requires multi-port, e.g. zookeeper.
Tong Cai commented
Is nodePort: bool necessary?
If we use string to specify port value, then it can be ignored.
name: string
// True to create NodePort service
portMapping:
- port: string
targetPort: string
protocol: string
# range [30000,32767], 0 to use random port
nodePort: string
Wei Guo commented
It makes sense to add multi-port to type services.
But I think that a random port is not very useful. If a config can generates multiple results, it's not stable and sometimes it will hide bugs.
Wei Guo commented
@caitong93 ok
Deyuan Deng commented
This is fixed? @caitong93 @kdada