Skip to content

Instantly share code, notes, and snippets.

@xgenvn
Last active October 16, 2019 16:40
Show Gist options
  • Select an option

  • Save xgenvn/8731abd16352b51d59b5072eefc46ffa to your computer and use it in GitHub Desktop.

Select an option

Save xgenvn/8731abd16352b51d59b5072eefc46ffa to your computer and use it in GitHub Desktop.
RancherOS - Fast install
  1. Get ISO
  2. Prepare cloud-config.yml, generate ssh and add to the config
ssh-keygen -t rsa -b 4096 -C "[email protected]"
# give the name dev_rancher_local for the key
echo "ssh_authorized_keys:" > cloud-config.yml
echo "  - $(cat dev_rancher_local.pub)" >> cloud-config.yml
  1. Serve cloud-config.yml somewhere accessible by internet
  2. Boot up ISO
  3. wget http://.../cloud-config.yml
  4. sudo ros install -c cloud-config.yml -d /dev/sda
  5. Enable rancher-server:
sudo ros service enable rancher-server
sudo ros service up rancher-server
  1. Visit rancher-server at ip:8080
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment