rancher / os

Tiny Linux distro that runs the entire OS as Docker containers
https://rancher.com/docs/os/v1.x/en/
Apache License 2.0
6.44k stars 657 forks source link

Restart Required Cloud-config while using sh ros config set rancher.ssh.port #3047

Open GurjinderSingh opened 3 years ago

GurjinderSingh commented 3 years ago

RancherOS Version: (ros os version)

Operating System: RancherOS v1.5.6

Where are you running RancherOS? (docker-machine, AWS, GCE, baremetal, etc.)

DigitalOcean

I want to change ssh port of the newly created droplet from the account and node template. We have two main methods to do it.

  1. cloud-config

cloud-config

rancher: ssh: port: 6969

This method working fine on the web browser while manually creating a droplet. I was failed to supply it in NodeTemplate, please guide me if possible.

  1. /bin/sh cmd

!/bin/sh

ros config set rancher.ssh.port 6969

The second method does change the port from Nodetemplate and web browser but manually restarts required. There were some similar issues in the past but I think this new.

  1. /bin/sh cmd

!/bin/sh

ros config set rancher.ssh.port 6969 sudo reboot adding reboot screw up everthing.

please help me find some solution. I have created almost 50 droplets to test all different scenarios. 😵