Giter Club home page Giter Club logo

Comments (3)

jtschelling avatar jtschelling commented on September 21, 2024

tacking this on here.......i also need support for configuring ECS_ENABLE_CONTAINER_METADATA

is there a way we can set these arbitrarily without having to make individual issues/pr's for every config available to the ecs-agent?

from bottlerocket.

DenzD avatar DenzD commented on September 21, 2024

@jtschelling I have reconfigured my services to use ecs_container_metadata_uri_v4.

from bottlerocket.

arnaldo2792 avatar arnaldo2792 commented on September 21, 2024

While working on supporting ECS_ENABLE_CONTAINER_METADATA, I realized that due to how we configure the ECS agent, this feature won't work unless we patch the ECS agent.

When the ECS agent attempts to mount the metadata file on the task's container, it will use the directory ${ECS_HOST_DATA_DIR}/${ECS_DATADIR}. In normal circumstances, the values for these environment variables will be /var/lib/ecs and /data, respectively, and the resulting path for the directory will be /var/lib/ecs/data. In Bottlerocket, we change ECS_DATADIR to be /var/lib/ecs without changing the default value of ECS_HOST_DATA_DIR. That results on the ECS agent creating the metadata file for the container at /var/lib/ecs/data/metadata, as expected, but the mounted directory will be /var/lib/ecs/var/lib/ecs/data due to the overridden ECS_DATADIR.

Setting ECS_HOST_DATA_DIR as an empty string isn't an option since that value is used by other features like Firelens.

from bottlerocket.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.