-
Notifications
You must be signed in to change notification settings - Fork 292
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
Adding privileged, allowPrivilegedEscalation and readOnlyRootFilesyst… #473
Adding privileged, allowPrivilegedEscalation and readOnlyRootFilesyst… #473
Conversation
…em to container security context, also adjusting deployment.yaml
Thanks for the PR @phlukman, could you please provide the output of |
hi @PrasadG193 , thanks for the feedback. Here is the output: Error: unable to build kubernetes objects from release manifest: error validating "": error validating data: [ValidationError(Deployment.spec.template.spec.volumes[0].projected): unknown field "allowPrivilegeEscalation" in io.k8s.api.core.v1.ProjectedVolumeSource, ValidationError(Deployment.spec.template.spec.volumes[0].projected): unknown field "privileged" in io.k8s.api.core.v1.ProjectedVolumeSource, ValidationError(Deployment.spec.template.spec.volumes[0].projected): unknown field "readOnlyRootFilesystem" in io.k8s.api.core.v1.ProjectedVolumeSource, ValidationError(Deployment.spec.template.spec.volumes[0].projected): unknown field "runAsGroup" in io.k8s.api.core.v1.ProjectedVolumeSource, ValidationError(Deployment.spec.template.spec.volumes[0].projected): unknown field "runAsUser" in io.k8s.api.core.v1.ProjectedVolumeSource] |
@phlukman looks like |
hi @PrasadG193 Please find attached the output of the dry-run |
Adding privileged, allowPrivilegedEscalation and readOnlyRootFilesystem to container security context, also adjusting deployment.yaml
ISSUE TYPE
SUMMARY
Need to add more granular control to the container's security context. I'd need to add these extra attributes as well as liveness and readiness probes. Is this is something that can be included in the code?
thank you !