datadog-agent icon indicating copy to clipboard operation
datadog-agent copied to clipboard

Failure to create Daemonset Pod (MiniShift)

Open SherazShahid17 opened this issue 6 years ago • 3 comments

Following all instructions in installing the Kubernetes Datadog-agent, when executed it reaches the following error (separated for ease)

Warning FailedCreate 13h (x78 over 19h) daemonset-controller Error creating: pods "datadog-agent-" is forbidden: unable to validate against any security context constraint:

[spec.volumes[1]: Invalid value: "hostPath": hostPath volumes are not allowed to be used spec.volumes [2]: Invalid value: "hostPath": hostPath volumes are not allowed to be used spec.volumes [3]: Invalid value: "hostPath": hostPath volumes are not allowed to be used spec.volumes [7]: Invalid value: "hostPath": hostPath volumes are not allowed to be used spec.volumes [8]: Invalid value: "hostPath": hostPath volumes are not allowed to be used spec.volumes[ 10]: Invalid value: "hostPath": hostPath volumes are not allowed to be used spec.volumes [11]: Invalid value: "hostPath": hostPath volumes are not allowed to be used spec.volumes [12]: Invalid value: "hostPath": hostPath volumes are not allowed to be used spec.volumes [13]: Invalid value: "hostPath": hostPath volumes are not allowed to be used spec.initContainers

[0].securityContext.containers[1].hostPort: Invalid value: 8126: Host ports are not allowed to be used spec.initContainers [1].securityContext.containers [1].hostPort: Invalid value: 8126: Host ports are not allowed to be used spec.initContainers [2].securityContext.containers[1].hostPort: Invalid value: 8126: Host ports are not allowed to be used spec.containers [0].securityContext.containers [1].hostPort: Invalid value: 8126: Host ports are not allowed to be used spec.containers [1].securityContext.containers[1].hostPort: Invalid value: 8126: Host ports are not allowed to be used spec.containers[2].securityContext.containers

[1].hostPort: Invalid value: 8126: Host ports are not allowed to be used pod.metadata.annotations.container.seccomp.security.alpha.kubernetes.io/system-probe: Forbidden: seccomp may not be set capabilities.add:

Invalid value: "IPC_LOCK": capability may not be added capabilities.add: Invalid value: "NET_ADMIN": capability may not be added capabilities.add: Invalid value: "SYS_ADMIN": capability may not be added capabilities.add: Invalid value: "SYS_PTRACE": capability may not be added capabilities.add: Invalid value: "SYS_RESOURCE": capability may not be added spec.containers

[3].securityContext.containers [1].hostPort: Invalid value: 8126: Host ports are not allowed to be used

Attached screenshot:

Screenshot 2020-05-17 at 19 32 55

SherazShahid17 avatar May 17 '20 18:05 SherazShahid17

Hey @SherazShahid17

This issue seems related to Openshift security rules. You can find how to enable these options in your SCC in our Openshift doc: https://docs.datadoghq.com/integrations/openshift/#restricted-scc-operations

If this does not yield any results, you can open a support ticket by emailing: [email protected] to troubleshoot this further with our support team.

Thanks,

Simon

Simwar avatar Jun 08 '20 15:06 Simwar

This issue has been automatically marked as stale because it has not had activity in the past 15 days.

It will be closed in 30 days if no further activity occurs. If this issue is still relevant, adding a comment will keep it open. Also, you can always reopen the issue if you missed the window.

Thank you for your contributions!

dd-octo-sts avatar Oct 22 '25 10:10 dd-octo-sts

Automatically closed due to inactivity.

jacjtito avatar Jan 04 '26 17:01 jacjtito