Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Dockerfile; remove securityContext runAsUser #1695

Merged
merged 4 commits into from Mar 10, 2021

Conversation

realshuting
Copy link
Member

@realshuting realshuting commented Mar 10, 2021

Related issue

What type of PR is this

/kind bug

This PR fixes #1662:

  • removes securityContext runAsUser
  • run Kyverno process with uid 10001 (Dockerfile)
  • add back build info when publishing images

Proposed changes

Checklist

Further comments

… manifest

Signed-off-by: Shuting Zhao <shutting06@gmail.com>
Signed-off-by: Shuting Zhao <shutting06@gmail.com>
Signed-off-by: Shuting Zhao <shutting06@gmail.com>
@realshuting
Copy link
Member Author

With the changes made in the PR, I verified Kyverno is running with uid 10001, without runAsUser specified in the deployment manifest:

✗ k exec -ti kyverno-57dd9fdfbc-fvm79 -n kyverno -- ps aux
PID   USER     TIME  COMMAND
    1 10001     0:02 ./kyverno --filterK8sResources=[Event,*,*][*,kube-system,*
   16 10001     0:00 ps aux

Signed-off-by: Shuting Zhao <shutting06@gmail.com>
@realshuting realshuting merged commit c8a41d8 into kyverno:main Mar 10, 2021
@realshuting realshuting deleted the update_dockerfile branch March 10, 2021 22:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG]installation is failing due to uid range constraint
2 participants