RancherOS install

Management end IP: 192.168.3.232
1. The management end generates ssh-key
ssh-keygen -t rsa

2. Write ssh-key to cloud-config.yml
#cloud-config

rancher:
    network:
        interfaces:
            eth0:
                address: 192.168.3.121/24
                gateway: 192.168.3.1
                mtu: 1500
                dhcp: false

ssh_authorized_keys:
    - ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA0rUXXb3mIX1Zt0U6GMGchehCp7nIo75jENxYWgg0hQCQ9+BMOmN1Dtl/UsewNRRO3X4OajJ0M4fU0B8bWXsG1nv9cSESzoozh6AXo0ZxbZtp7Kg3aD41ncF1IW4pa3kAVEmgjxFc3VvYLhnF27zWxEmbqqulbBD7n6ARSJijbW/v0sNVncd14K/B5eYdIZIbzdAWpvbYI5Eug42G+CJlZo4q/Qa9XBeGDQAU+aHIZj+fkj4U8t5DFAI6ApUa5h4P5/ddBTNDj7f/iyXTOgJQrtnITSdd565+11S6ERZSWt88C7/OfspDZZx9gFy2lIxI46TTdMkfnlqbEpQbC1KzFw== rsa 2048-041018

3. Enter rancherOS, copy the management cloud-config.yml to the local, execute
sudo scp [email protected]:/root/cloud-config.yml /root

4. Install rancheros to the local disk
sudo ros install -c cloud-config.yml -d /dev/sda

5. Log in to rancheros in the management terminal
[root@k8sMaster ~]# ssh -i /root/.ssh/id_rsa [email protected]
[rancher@rancher ~]$

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324726976&siteId=291194637