Is it possible to use docker compose to build a swarm kubernetes cluster

0 votes
Jul 3, 2019 in Docker by Sam
• 6,260 points
334 views

1 answer to this question.

0 votes

Yes, one can deploy a stack on Kubernetes with docker stack deploy command, the docker-compose.yml file, and the name of the stack.

Here's an example:

$docker stack deploy --compose-file /path/to/docker-compose.yml mystack

$docker stack services mystack

You can see the service deployed with the kubectl get services command 

$kubectl get svc,po,deploy
answered Jul 3, 2019 by Sirajul
• 58,950 points

Related Questions In Docker

0 votes
1 answer
0 votes
1 answer

Is it possible to spin-up a docker host on a cloud platform?

Yes, It is definitely possible to spin ...READ MORE

answered Jul 4, 2019 in Docker by Sirajul
• 58,950 points
160 views
+2 votes
1 answer
+5 votes
7 answers

Docker swarm vs kubernetes

Swarm is easy handling while kn8 is ...READ MORE

answered Aug 27, 2018 in Docker by Mahesh Ajmeria
1,414 views
0 votes
1 answer

Is it possible to use JSON instead of YAML for docker-compose file?

You can use JSON instead of YAML ...READ MORE

answered Jul 2, 2019 in Docker by Sirajul
• 58,950 points
1,026 views
0 votes
1 answer