From 88b527d6c69dd922de6eb5b4435d8645ed4a4b2e Mon Sep 17 00:00:00 2001 From: Cory Latschkowski Date: Mon, 18 Nov 2024 15:46:19 -0600 Subject: [PATCH] fix: nim --- components/app-configs/nim/base/deployment.yaml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/components/app-configs/nim/base/deployment.yaml b/components/app-configs/nim/base/deployment.yaml index 3289d28d..d25bceb1 100644 --- a/components/app-configs/nim/base/deployment.yaml +++ b/components/app-configs/nim/base/deployment.yaml @@ -2,7 +2,7 @@ apiVersion: apps/v1 kind: Deployment metadata: - name: llama3 + name: nim spec: replicas: 1 strategy: @@ -53,17 +53,22 @@ spec: # periodSeconds: 5 # successThreshold: 1 # failureThreshold: 10 + securityContext: + runAsNonRoot: true + allowPrivilegeEscalation: false volumeMounts: - name: shm mountPath: /dev/shm - - name: nim-cache + - name: empty mountPath: /opt/nim/.cache subPath: data volumes: + - name: empty + emptyDir: {} - name: shm emptyDir: medium: Memory - sizeLimit: 512Mi + # sizeLimit: 512Mi - name: nim-cache persistentVolumeClaim: claimName: nim