Skip to content

Instantly share code, notes, and snippets.

@steve-taylor
Created March 25, 2018 11:31
Show Gist options
  • Save steve-taylor/6e8fa61e95431699f426c98752249e06 to your computer and use it in GitHub Desktop.
Save steve-taylor/6e8fa61e95431699f426c98752249e06 to your computer and use it in GitHub Desktop.
RancherOS cloud-config.yml options
# RancherOS cloud-config.yml options I find useful.
# Enable 4GB swap
runcmd:
- sudo dd if=/dev/zero of=/swapfile bs=4K count=1M
- sudo chmod 600 /swapfile
- sudo mkswap /swapfile
- sudo swapon /swapfile
mounts:
- [ /swapfile, none, swap, sw, 0, 0 ]
rancher:
sysctl:
vm.swappiness: 60
# Use the latest stable Docker engine
docker:
engine: docker-17.12.1-ce
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment