You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 11, 2023. It is now read-only.
RancherOS Version: (ros os version)
v1.5.1 Where are you running RancherOS? (docker-machine, AWS, GCE, baremetal, etc.)
AWS ECS
Hi,
I'm currently using RancherOS to deploy a sample Nginx WebApp using ECS, which supports bridge and awsvpc network modes. RancherOS works fine with the former, but apparently won't work with awsvpc. Since I want to use AWS AppMesh as well, I need awsvpc network mode to work (see this).
I've done some digging and what I found is that apparently all we need to get awsvpc to work is to run the ecs-agent with the "--init" flag:
To configure an ENI for containers/tasks, ECS agent depends on tools such as dhclient and on some container capabilities such as the --init flag, SYSTEM_ADMIN and NET_ADMIN capabilities that are provided via Docker. ECS init is a convenient way for the ECS agent to be bootstrapped with all of these so that tasks that require ENIs do not fail during initialization because of missing dependencies/configurations.
And indeed, I was able to make it work by running the command @aaithal posted here on my RancherOS ECS Instance:
We can already pass ECS_* variables to ecs-agent, so the only thing missing here would be allowing users to define a different command for system services, I believe. An example cloud-config would look like this:
RancherOS Version: (ros os version)
v1.5.1
Where are you running RancherOS? (docker-machine, AWS, GCE, baremetal, etc.)
AWS ECS
Hi,
I'm currently using RancherOS to deploy a sample Nginx WebApp using ECS, which supports bridge and awsvpc network modes. RancherOS works fine with the former, but apparently won't work with awsvpc. Since I want to use AWS AppMesh as well, I need awsvpc network mode to work (see this).
I've done some digging and what I found is that apparently all we need to get awsvpc to work is to run the ecs-agent with the "--init" flag:
aws/amazon-ecs-agent#1083 (comment)
And indeed, I was able to make it work by running the command @aaithal posted here on my RancherOS ECS Instance:
The running task:
![1555010892](https://user-images.githubusercontent.com/20691882/55987068-184bdf80-5c77-11e9-9b9a-d5d72a5ce3da.jpg)
Containers in the instance:
![1555010920](https://user-images.githubusercontent.com/20691882/55987099-2699fb80-5c77-11e9-98ec-f2fd48d00752.jpg)
We can already pass ECS_* variables to ecs-agent, so the only thing missing here would be allowing users to define a different command for system services, I believe. An example cloud-config would look like this:
I couldn't find a documentation that shows an example of this being possible, which is why I'm resorting to opening this issue.
The text was updated successfully, but these errors were encountered: