docker-archive / swarm-frontends

Deploy Kubernetes with Swarm
Apache License 2.0
182 stars 50 forks source link

swarm-frontend for bare metals #6

Open navinSing opened 8 years ago

navinSing commented 8 years ago

what would be the steps for bare-metals .. want to setup local env

amitshukla commented 8 years ago

@navinSing can you clarify what you are looking for? E.g.: are you trying to use these compose files to setup a mesos or kubernetes cluster on your local machine without using Virtual machines?

navinSing commented 8 years ago

Looking for just 2 things ..

  1. Setup script for the slave machine.. I mean what will be the config/ order .. Mesos slave ... Or docker slave along with the deamon params to connect to consul.
  2. And local docker registry for the LAN.

I spent like 3 days trying to do this without success.

It will be great if you can help me here.

Thanks

On Dec 11, 2015 11:54 PM, "Amit Shukla" notifications@github.com wrote:

@navinSing https://github.com/navinSing can you clarify what you are looking for? E.g.: are you trying to use these compose files to setup a mesos or kubernetes cluster on your local machine without using Virtual machines?

— Reply to this email directly or view it on GitHub https://github.com/docker/swarm-frontends/issues/6#issuecomment-164009468 .

amitshukla commented 8 years ago

@navinSing if you look at init_swarm.sh, you should be able to use this command as a template to get swarm on the machine: echo "----- create a machine for swarm node 5 -----" docker-machine create -d virtualbox --swarm \ --swarm-discovery="consul://$(docker-machine ip mh-keystore):8500" \ --engine-opt="cluster-store=consul://$(docker-machine ip mh-keystore):8500" \ --engine-opt="cluster-advertise=eth1:2376" \ swarm-node-05

After this, you should be able to use the compose file to configure Mesos master, slaves etc.

Look at the docker-machine documentation for your specific scenarion. For example, this page lists how to use docker-machine to configure a machine in AWS: https://docs.docker.com/machine/drivers/aws/

navinSing commented 8 years ago

@amitshukla , sorry.. let me clarify .. i am looking for bare metals .. at this moment not aws or vagrant.

Assume that i have a linux machine. what all things i should do to join it to the swarm. I was specifically looking at mesos example.

so i will have to install swarm-agent and mesos slave .. what will be the order. What ssh keys sharing i need to do ..

Also if i can get a local docker registry it will be great..

amitshukla commented 8 years ago

@navinSing please read this article: https://blog.codefresh.io/docker-machine-basics/ And use the generic driver (Ubuntu server over ssh).

navinSing commented 8 years ago

nah, that is not what i was looking for it simply installs docker-machine on that host, looking for a swarm cluster to connect to the rest of the machines. The example doesn't use ssh keys etc..

navinSing commented 8 years ago

any updates on this .. please