appsmithorg / appsmithorg/appsmith

Not able to run appsmith in kubernetes with podsecurity policy enabled: cp: can't create '/etc/nginx/nginx.conf': File exists

Open
#10,464 6 comments 0 reactions 4 assignees Claimed by @sharat87 View on GitHub
Bug DevOps Pod High K8s Needs Triaging Production
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.