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

Code-executor running as a privileged container #141

Closed
cedenilla opened this issue Jan 15, 2024 · 1 comment
Closed

Code-executor running as a privileged container #141

cedenilla opened this issue Jan 15, 2024 · 1 comment

Comments

@cedenilla
Copy link

Hello,

I'm currently in the process of installing the code-executor in the self-hosted version. However, I've encountered an issue where the pod is not being scheduled due to it running as a privileged container.

pods "retool-code-executor-857b777d78-" is forbidden: PodSecurityPolicy: unable to admit pod: [spec.containers[0].securityContext.privileged: Invalid value: true: Privileged containers are not allowed]

I'd appreciate clarification on whether there is a specific reason for the code-executor needing to run as a privileged container. Is it possible to eliminate this requirement and instead configure the SecurityContext directly from the values YAML file?

Thank you for your assistance.
Daniel

@demitrin
Copy link

It looks like we support setting a security context for the code executor service that can let you run it without running as privileged:

{{ if .Values.codeExecutor.securityContext }}
{{ toYaml .Values.codeExecutor.securityContext | indent 10 }}
{{ else }}
privileged: true
{{ end }}

Going to close this for now but feel free to re-open if this isn't sufficient for your deployment

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

No branches or pull requests

2 participants