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

fix: add ace-backend readonly #198

Merged
merged 1 commit into from
Dec 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions charts/langsmith/ci/readonly-config-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,32 @@ config:
langsmithLicenseKey: "YOUR_LICENSE_KEY"
apiKeySalt: "YOUR_API_KEY_SALT"

aceBackend:
deployment:
resources:
requests:
cpu: 100m
memory: 500Mi
podSecurityContext:
runAsNonRoot: true
runAsUser: 1000
runAsGroup: 1000
fsGroup: 1000
securityContext:
capabilities:
drop:
- ALL
seccompProfile:
type: RuntimeDefault
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
volumes:
- name: tmp
emptyDir: {}
volumeMounts:
- name: tmp
mountPath: /app/node_modules

backend:
deployment:
resources:
Expand Down
38 changes: 22 additions & 16 deletions charts/langsmith/examples/read_only_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,30 @@ config:
langsmithLicenseKey: "YOUR_LICENSE_KEY"
apiKeySalt: "YOUR_API_KEY_SALT"

aceBackend:
deployment:
podSecurityContext:
runAsNonRoot: true
runAsUser: 1000
runAsGroup: 1000
fsGroup: 1000
securityContext:
capabilities:
drop:
- ALL
seccompProfile:
type: RuntimeDefault
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
volumes:
- name: tmp
emptyDir: {}
volumeMounts:
- name: tmp
mountPath: /app/node_modules

backend:
deployment:
resources:
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these only need to be overridden in ci

requests:
cpu: 100m
memory: 500Mi
podSecurityContext:
runAsNonRoot: true
runAsUser: 1000
Expand All @@ -25,10 +43,6 @@ backend:

frontend:
deployment:
resources:
requests:
cpu: 100m
memory: 500Mi
podSecurityContext:
runAsNonRoot: true
runAsUser: 1000
Expand All @@ -51,10 +65,6 @@ frontend:

platformBackend:
deployment:
resources:
requests:
cpu: 100m
memory: 500Mi
podSecurityContext:
runAsNonRoot: true
runAsUser: 1000
Expand All @@ -78,10 +88,6 @@ platformBackend:

playground:
deployment:
resources:
requests:
cpu: 100m
memory: 500Mi
command:
- "yarn"
- "start"
Expand Down
Loading