Created
March 25, 2018 11:31
-
-
Save steve-taylor/6e8fa61e95431699f426c98752249e06 to your computer and use it in GitHub Desktop.
RancherOS cloud-config.yml options
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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