footloose icon indicating copy to clipboard operation
footloose copied to clipboard

hostPort offsetting confusing when multiple machines

Open kke opened this issue 4 years ago • 0 comments

A config such as:

machines:
- count: 1
  backend: docker
  spec:
    portMappings:
    - containerPort: 22
      hostPort: 9022
- count: 1
  backend: docker
  spec:
    portMappings:
    - containerPort: 22
      hostPort: 9122

will make the second machine's SSH port 9123.

I believe this is because there's something like hostPort + %d where %d is the machine number. But for a scenario like this it is pretty confusing.

kke avatar May 13 '20 12:05 kke