appsmithorg / appsmithorg/appsmith
Not able to run appsmith in kubernetes with podsecurity policy enabled: cp: can't create '/etc/nginx/nginx.conf': File exists
- Dominant language
- TypeScript
- Stars
- 40.9k
- Forks
- 4.8k
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 45
Description
### Is there an existing issue for this?
- [X] I have searched the existing issues
### Current Behavior
In production one need to run containers as non-root users. When I enable securityContext for appsmith/appsmith-editor
it gives me error
+ cp /nginx-root.conf.template /etc/nginx/nginx.conf
cp: can't create '/etc/nginx/nginx.conf': File exists
### Steps To Reproduce
[frontend-template.txt](https://github.com/appsmithorg/appsmith/files/7890131/frontend-template.txt)
change the frontend-template.yaml into the attached file
and run kubectl create -f frontend-template.yaml
### Environment
Production
### Version
Self-Hosted
Contributor guide
Assessment
This issue has not been assessed yet.