Continental Innovates with Rancher and Kubernetes
RancherOS is available as an Amazon Web Services AMI, and can be easily run on EC2. You can launch RancherOS either using the AWS Command Line Interface (CLI) or using the AWS console.
If you haven’t installed the AWS CLI, follow the instructions on the AWS CLI page to install the CLI and configure access key and secret keys.
Once you’ve installed your AWS CLI, use this command to launch an EC2 instance with the RancherOS AMI. You will need to know your SSH key name and security group name for the region that you are configured for. These can be found from the AWS console.
Note: Check the RancherOS README for AMI names for each region. We support PV and HVM types of AMIs.
$ aws ec2 run-instances --image-id ami-ID# --count 1 --instance-type t2.small --key-name MySSHKeyName --security-groups sg-name
Your EC2 instance is now running RancherOS!
Let’s walk through how to import and create a RancherOS on EC2 machine using the AWS console.
From a command line, log into the EC2 Instance. If you added ssh keys using a cloud-config, both those keys, and the one you selected in the AWS UI will be installed.
$ ssh -i /Directory/of/MySSHKeyName.pem rancher@<ip-of-ec2-instance>
If you have issues logging into RancherOS, try using this command to help debug the issue.
$ ssh -v -i /Directory/of/MySSHKeyName.pem rancher@<ip-of-ec2-instance>
Please check the README in our RancherOS repository for our latest AMIs.