You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When it fails it also produces this error in the namespace events:
18m Warning InternalError taskrun/build-app-run-vldj8 1 error occurred:
* failed to create task run pod "build-app-run-vldj8": pods "build-app-run-vldj8-pod-wtss6" is forbidden: unable to validate against any security context constraint: [spec.containers[3].securityContext.privileged: Invalid value: true: Privileged containers are not allowed spec.containers[4].securityContext.privileged: Invalid value: true: Privileged containers are not allowed spec.containers[3].securityContext.runAsUser: Invalid value: 0: must be in the ranges: [1000660000, 1000669999] spec.containers[3].securityContext.privileged: Invalid value: true: Privileged containers are not allowed spec.containers[4].securityContext.runAsUser: Invalid value: 0: must be in the ranges: [1000660000, 1000669999] spec.containers[4].securityContext.privileged: Invalid value: true: Privileged containers are not allowed spec.containers[3].securityContext.runAsUser: Invalid value: 0: running with the root UID is forbidden spec.containers[3].securityContext.privileged: Invalid value: true: Privileged containers are not allowed spec.containers[4].securityContext.runAsUser: Invalid value: 0: running with the root UID is forbidden spec.containers[4].securityContext.privileged: Invalid value: true: Privileged containers are not allowed]. Maybe missing or invalid Task tektontutorial/build-app
To Reproduce
Steps to reproduce the behavior:
Preform the TaskRun command above under Build Cloud Native Application
Watch screen
See error when it fails to Init image due to SCC violation
Expected behavior
No security constraint error and image runs as expected.
Suggestions
Possibly use a different image that does not require user root (0) or if that image must be used then add a note for OCP 4.7 users to preform the follwing in the tektontutorial namespace...
Should there be a note for OCP 4.7 users somewhere to change the pipeline serviceaccount to add privileged scc?
Issue
The follwing step fails:
When it fails it also produces this error in the namespace events:
To Reproduce
Steps to reproduce the behavior:
Expected behavior
No security constraint error and image runs as expected.
Suggestions
Possibly use a different image that does not require user root (0) or if that image must be used then add a note for OCP 4.7 users to preform the follwing in the
tektontutorial
namespace...Desktop:
The text was updated successfully, but these errors were encountered: