1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

DockerでDatadogAgentを動かしているときに IMDSv2 に対応させる

Posted at
  dd-agent:
    container_name: dd-agent
    image: datadog/agent:7.33.1
    environment:
      - DD_API_KEY=${DD_API_KEY}
      - DD_TAGS=hogehoge
      - DD_EC2_PREFER_IMDSV2=true   # これを追加してコンテナ再起動
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock:ro
      - /proc/:/host/proc/:ro
      - /sys/fs/cgroup/:/host/sys/fs/cgroup:ro

なんでこんなことを書いているのか

通常のagentの場合は datadog.yaml に ec2_prefer_imdsv2: true を設定せよというのはググればすぐ出てくるのですが、コンテナの場合の記載方法が書いてあるのが config_template くらいしかなかったので。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?