Skip to content

Commit

Permalink
Set runAsUser uid for nonroot distroless image
Browse files Browse the repository at this point in the history
Port of tektoncd/pipeline#3342:

The distroless nonroot image define a user with the uid 65532. The
deployment should use that uid to make sure it works anywhere.
  • Loading branch information
dibyom authored Oct 8, 2020
1 parent 28c5d3e commit fbf5f86
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions base/300-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ spec:
volumes: []
securityContext:
runAsNonRoot: true
runAsUser: 65532
containers:
- name: tekton-dashboard
image: dashboardImage
Expand Down

0 comments on commit fbf5f86

Please sign in to comment.