add some more thoughts

pull/227/head v3.0.0-dev-20191016-0
iwilltry42 5 years ago
parent 5f4af67379
commit c18874ad19
  1. 14
      thoughts.md

@ -56,4 +56,16 @@ Here's how k3d types should translate to a runtime type:
- Args ->
- Ports ->
- Restart ->
- Labels -> container.Labels
- Labels -> container.Labels
## expose ports / volumes
- `--port [host:]port[:containerPort][/protocol][@group_identifier[[index] | @node_identifier]`
- Examples:
- `--port 0.0.0.0:8080:8081/tcp@workers` -> whole group
- `--port 80@workers[0]` -> single instance of group by list index
- `--port 80@workers[0,2-3]` -> multiple instances of a group by index lists and ranges
- `--port 80@k3d-test-worker-0` -> single instance by specific node identifier
- `--port 80@k3d-test-master-0@workers[1-5]` -> multiple instances by combination of node and group identifiers
- analogous for volumes

Loading…
Cancel
Save