Skip to content

Instantly share code, notes, and snippets.

@xrl
Created December 12, 2016 08:25
Show Gist options
  • Save xrl/37709dddaa76a297f559b6e39f4b8bf3 to your computer and use it in GitHub Desktop.
Save xrl/37709dddaa76a297f559b6e39f4b8bf3 to your computer and use it in GitHub Desktop.
Deploying DCOS on OVH

OVH is a decent host -- cheap, large-scale hardware. Around 1/5 the cost of the big guys, without the polished API or slick experience (and none of the live migration of bad instances).

Let's run DCOS on OVH!

You'll need 3 instances:

  1. The 'agent' or heavy lifting host
  2. The 'master' or coordinating host
  3. The 'bootstrapping' or dumb-file-serving host

I chose a 32GB/4 core dedicated host for the agent, a 4GB SSD instance for the master, and a 4GB SSD instance for the bootstrapping host. Since we're mixing and matching product lines you'll need to choose the greatest common denominator for OS distro: Ubuntu 16.04 LTS.

Upgrading the kernel:

First thing, you gotta upgrade the kernel so you can get OverlayFS for DCOS checks to pass:

ssh -i genconf/ssh_key $HOST 'bash -c "apt-get update && \
apt-get install -y apt-transport-https ca-certificates && \
apt-key adv \
               --keyserver hkp://ha.pool.sks-keyservers.net:80 \
               --recv-keys 58118E89F3A912897C070ADBF76221572C52609D && \
echo deb https://apt.dockerproject.org/repo ubuntu-xenial main | sudo tee /etc/apt/sources.list.d/docker.list && \
apt-get update && \
apt-get install -y linux-image-extra-$(uname -r) linux-image-extra-virtual && \
apt-get install -y docker-engine unzip ipset selinux-utils

Then you gotta enable that build by setting it up with grub. The trick is to get the proper offset in the menu.

fgrep menuentry /boot/grub/grub.cfg

Read through that, counting menuentry. Then edit /etc/default/grub and set the OPTION to the proper value (for me it went from 0 to 1). Generate the new bootscript with update-grub2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment