docker / compose-on-kubernetes
- пятница, 7 декабря 2018 г. в 00:16:22
Go
Deploy applications described in Compose onto Kubernetes clusters
Compose on Kubernetes allows you to deploy Docker Compose files onto a Kubernetes cluster.
Compose on Kubernetes comes installed on Docker Desktop and Docker Enterprise. To deploy a stack, you can use the Docker CLI:
$ cat docker-compose.yml
version: '3.3'
services:
db:
build: db
image: dockersamples/k8s-wordsmith-db
words:
build: words
image: dockersamples/k8s-wordsmith-api
deploy:
replicas: 5
web:
build: web
image: dockersamples/k8s-wordsmith-web
ports:
- "33000:80"
$ docker stack deploy --orchestrator=kubernetes -c docker-compose.yml hellostack
See the contributing and debugging guides.