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
748 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
• 59,230 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
• 59,230 points
531 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
3,046 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
• 59,230 points
4,339 views
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP