RancherOS Version: (ros os version)
v1.2.0
Where are you running RancherOS? (docker-machine, AWS, GCE, baremetal, etc.)
AWS
I'm using ECS-optimized AMI of RancherOS. When I shutdown the EC2 instance, existing container instance is not removed, the ECS agent of that instance gets disconnected, and new one with another container instance id (but with the same EC2 instance id) is created when I reboot that instance. I expect container instance to be automatically removed from ECS cluster when I shutdown it. Do I need additional config to automatically remove container intance? I only set ECS cluster and available logging drivers in userdata config.
I don't want invalid container instance to remain in the ECS cluster, since tasks on the invalid container instance are not automatically stopped, and ECS tries to place new tasks on that invalid instance. I need to manually deregister ECS instance everytime when I reboot the instance.
I created another ECS cluster with CoreOS, using ignition config from official website, and confirmed that this doesn't occur with CoreOS.
https://coreos.com/os/docs/latest/booting-on-ecs.html