kompose/script/test/fixtures/placement/docker-compose-array.yml
Suraj Narwade 35198cca12 Added feature for placement key in v3
it will map `engine.labels.operatingsystem` to `beta.kubernetes.io/os` and
`node.hostname` to `kubernetes.io/hostname` and all other constraints will not be supported.
2017-10-06 12:22:14 +05:30

9 lines
123 B
YAML

version: '3'
services:
db:
image: postgres
deploy:
placement:
constraints: [node.hostname == machine]