cloudability / metrics-agent

From the cloud optimization professionals
https://www.cloudability.com/
Apache License 2.0
39 stars 35 forks source link

Non-numeric user (agent) Error #82

Closed webbdog28 closed 4 years ago

webbdog28 commented 4 years ago

This is the error I'm getting when trying to run the metrics-agent in Kubernetes 1.15.10:

"Error: container has runAsNonRoot and image has non-numeric user (agent), cannot verify user is non-root"

This was fixed by changing the deployment.yaml file and adding the following:

  securityContext: 
    runAsUser: 1000

I would suggest either adding that to the deployment.yaml or updating the Dockerfile.

johnjeffers commented 4 years ago

Reopening, realized the Helm chart fix does not address this.

paulbhart commented 4 years ago

The better solution is the one I listed here https://github.com/cloudability/metrics-agent/issues/85. It doesn't change functionality just ensure the USER command in the docker file is a numeric id vs. a alpha value.

mnorbury commented 4 years ago

This should be fixed by #87, closing the issue. Please re-open if this continues to be a problem.