{"action":"created","issue":{"url":"https://api.github.com/repos/DataDog/documentation/issues/2777","repository_url":"https://api.github.com/repos/DataDog/documentation","labels_url":"https://api.github.com/repos/DataDog/documentation/issues/2777/labels{/name}","comments_url":"https://api.github.com/repos/DataDog/documentation/issues/2777/comments","events_url":"https://api.github.com/repos/DataDog/documentation/issues/2777/events","html_url":"https://github.com/DataDog/documentation/pull/2777","id":341300572,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAxNDg1Mjk4","number":2777,"title":"The datadog-agent command does not exist within the kubernetes container","user":{"login":"dmyerscough","id":1395617,"node_id":"MDQ6VXNlcjEzOTU2MTc=","avatar_url":"https://avatars0.githubusercontent.com/u/1395617?v=4","gravatar_id":"","url":"https://api.github.com/users/dmyerscough","html_url":"https://github.com/dmyerscough","followers_url":"https://api.github.com/users/dmyerscough/followers","following_url":"https://api.github.com/users/dmyerscough/following{/other_user}","gists_url":"https://api.github.com/users/dmyerscough/gists{/gist_id}","starred_url":"https://api.github.com/users/dmyerscough/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmyerscough/subscriptions","organizations_url":"https://api.github.com/users/dmyerscough/orgs","repos_url":"https://api.github.com/users/dmyerscough/repos","events_url":"https://api.github.com/users/dmyerscough/events{/privacy}","received_events_url":"https://api.github.com/users/dmyerscough/received_events","type":"User","site_admin":false},"labels":[{"id":794806364,"node_id":"MDU6TGFiZWw3OTQ4MDYzNjQ=","url":"https://api.github.com/repos/DataDog/documentation/labels/App","name":"App","color":"d4c5f9","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-07-15T07:36:12Z","updated_at":"2018-07-17T04:22:10Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/DataDog/documentation/pulls/2777","html_url":"https://github.com/DataDog/documentation/pull/2777","diff_url":"https://github.com/DataDog/documentation/pull/2777.diff","patch_url":"https://github.com/DataDog/documentation/pull/2777.patch"},"body":"<!-- *Note: Please remember to review the Datadog Documentation [Contribution Guidelines](https://github.com/DataDog/documentation/blob/master/CONTRIBUTING.md) if you have not yet done so.* -->\r\n\r\n### What does this PR do?\r\n<!-- A brief description of the change being made with this pull request.-->\r\n\r\nThe example command does not work in the latest datadog container. This was tested on Azure AKS kubernetes.\r\n\r\n```bash\r\n$ kubectl exec -it datadog-agent-c2tnp /etc/init.d/datadog-agent info\r\nrpc error: code = 2 desc = oci runtime error: exec failed: container_linux.go:247: starting container process caused \"exec: \\\"/etc/init.d/datadog-agent\\\": stat /etc/init.d/datadog-agent: no such file or directory\"\r\n\r\ncommand terminated with exit code 126\r\n```\r\n\r\n### Motivation\r\n<!-- What inspired you to submit this pull request?-->\r\n\r\nFriendly community commit :-)\r\n"},"comment":{"url":"https://api.github.com/repos/DataDog/documentation/issues/comments/405455098","html_url":"https://github.com/DataDog/documentation/pull/2777#issuecomment-405455098","issue_url":"https://api.github.com/repos/DataDog/documentation/issues/2777","id":405455098,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNTQ1NTA5OA==","user":{"login":"dmyerscough","id":1395617,"node_id":"MDQ6VXNlcjEzOTU2MTc=","avatar_url":"https://avatars0.githubusercontent.com/u/1395617?v=4","gravatar_id":"","url":"https://api.github.com/users/dmyerscough","html_url":"https://github.com/dmyerscough","followers_url":"https://api.github.com/users/dmyerscough/followers","following_url":"https://api.github.com/users/dmyerscough/following{/other_user}","gists_url":"https://api.github.com/users/dmyerscough/gists{/gist_id}","starred_url":"https://api.github.com/users/dmyerscough/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmyerscough/subscriptions","organizations_url":"https://api.github.com/users/dmyerscough/orgs","repos_url":"https://api.github.com/users/dmyerscough/repos","events_url":"https://api.github.com/users/dmyerscough/events{/privacy}","received_events_url":"https://api.github.com/users/dmyerscough/received_events","type":"User","site_admin":false},"created_at":"2018-07-17T04:22:10Z","updated_at":"2018-07-17T04:22:10Z","author_association":"NONE","body":"Hi,\r\n\r\nI am using kubernetes and the agent that came with the documentation seems to be version 6\r\n\r\n```bash\r\n# agent status\r\nGetting the status from the agent.\r\n\r\n==============\r\nAgent (v6.3.2)\r\n==============\r\n\r\n  Status date: 2018-07-17 04:17:56.325216 UTC\r\n  Pid: 339\r\n  Python Version: 2.7.14\r\n  Logs: \r\n  Check Runners: 2\r\n  Log Level: info\r\n\r\n  Paths\r\n  =====\r\n    Config File: /etc/datadog-agent/datadog.yaml\r\n    conf.d: /etc/datadog-agent/conf.d\r\n    checks.d: /etc/datadog-agent/checks.d\r\n\r\n  Clocks\r\n  ======\r\n    NTP offset: 0.000329966 s\r\n    System UTC time: 2018-07-17 04:17:56.325216 UTC\r\n\r\n  Host Info\r\n  =========\r\n    bootTime: 2018-06-17 07:21:55.000000 UTC\r\n    kernelVersion: 4.13.0-1018-azure\r\n    os: linux\r\n    platform: debian\r\n    platformFamily: debian\r\n    platformVersion: buster/sid\r\n    procs: 71\r\n    uptime: 2.424918e&#43;06\r\n\r\n  Hostnames\r\n  =========\r\n    host_aliases: [08642048-f874-489b-98d3-29149b975df3 aks-agentpool-83708285-2]\r\n    hostname: aks-agentpool-83708285-2\r\n    socket-fqdn: datadog-agent-8lp96\r\n    socket-hostname: datadog-agent-8lp96\r\n```\r\n\r\nI retrieved the agent from the automatically generated kubernetes DaemonSet that is generated in the portal.\r\n\r\n```yaml\r\napiVersion: extensions/v1beta1\r\nkind: DaemonSet\r\nmetadata:\r\n  name: datadog-agent\r\nspec:\r\n  template:\r\n    metadata:\r\n      labels:\r\n        app: datadog-agent\r\n      name: datadog-agent\r\n    spec:\r\n      containers:\r\n      - image: datadog/agent:latest\r\n        imagePullPolicy: Always\r\n        name: datadog-agent\r\n        ports:\r\n          - containerPort: 8125\r\n            name: dogstatsdport\r\n            protocol: UDP\r\n          - containerPort: 8126\r\n            name: traceport\r\n            protocol: TCP\r\n        env:\r\n          - name: DD_API_KEY\r\n            value: XXXXXXXXXXXX\r\n          - name: KUBERNETES\r\n            value: \"yes\"\r\n          - name: DD_KUBERNETES_KUBELET_HOST\r\n            valueFrom:\r\n              fieldRef:\r\n                fieldPath: status.hostIP\r\n        resources:\r\n          requests:\r\n            memory: \"256Mi\"\r\n            cpu: \"200m\"\r\n          limits:\r\n            memory: \"256Mi\"\r\n            cpu: \"200m\"\r\n        volumeMounts:\r\n          - name: dockersocket\r\n            mountPath: /var/run/docker.sock\r\n          - name: procdir\r\n            mountPath: /host/proc\r\n            readOnly: true\r\n          - name: cgroups\r\n            mountPath: /host/sys/fs/cgroup\r\n            readOnly: true\r\n        livenessProbe:\r\n          exec:\r\n            command:\r\n            - ./probe.sh\r\n          initialDelaySeconds: 15\r\n          periodSeconds: 5\r\n      volumes:\r\n        - hostPath:\r\n            path: /var/run/docker.sock\r\n          name: dockersocket\r\n        - hostPath:\r\n            path: /proc\r\n          name: procdir\r\n        - hostPath:\r\n            path: /sys/fs/cgroup\r\n          name: cgroups\r\n```"}}
{"actor":{"display_login":"dmyerscough"}}