fix: remove securityContext from litellm
This commit is contained in:
parent
833327c45f
commit
9db1b6182b
|
|
@ -23,10 +23,6 @@ spec:
|
||||||
prometheus.io/port: "4000"
|
prometheus.io/port: "4000"
|
||||||
prometheus.io/path: "/metrics"
|
prometheus.io/path: "/metrics"
|
||||||
spec:
|
spec:
|
||||||
securityContext:
|
|
||||||
runAsNonRoot: true
|
|
||||||
runAsUser: 1000
|
|
||||||
fsGroup: 1000
|
|
||||||
containers:
|
containers:
|
||||||
- name: litellm
|
- name: litellm
|
||||||
image: ghcr.io/berriai/litellm:main-v1.55.10
|
image: ghcr.io/berriai/litellm:main-v1.55.10
|
||||||
|
|
@ -54,19 +50,18 @@ spec:
|
||||||
key: DATABASE_URL
|
key: DATABASE_URL
|
||||||
- name: STORE_MODEL_IN_DB
|
- name: STORE_MODEL_IN_DB
|
||||||
value: "True"
|
value: "True"
|
||||||
|
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
path: /health
|
path: /health
|
||||||
port: 4000
|
port: 4000
|
||||||
initialDelaySeconds: 30
|
initialDelaySeconds: 30
|
||||||
periodSeconds: 20
|
periodSeconds: 20
|
||||||
timeoutSeconds: 5
|
timeoutSeconds: 5
|
||||||
failureThreshold: 3
|
failureThreshold: 3
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
path: /health
|
path: /health
|
||||||
port: 4000
|
port: 4000
|
||||||
initialDelaySeconds: 10
|
initialDelaySeconds: 10
|
||||||
periodSeconds: 10
|
periodSeconds: 10
|
||||||
timeoutSeconds: 3
|
timeoutSeconds: 3
|
||||||
|
|
@ -75,8 +70,6 @@ spec:
|
||||||
- name: config
|
- name: config
|
||||||
mountPath: /etc/litellm
|
mountPath: /etc/litellm
|
||||||
readOnly: true
|
readOnly: true
|
||||||
- name: cache
|
|
||||||
mountPath: /.cache
|
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: 250m
|
cpu: 250m
|
||||||
|
|
@ -84,14 +77,7 @@ spec:
|
||||||
limits:
|
limits:
|
||||||
cpu: "2"
|
cpu: "2"
|
||||||
memory: 2Gi
|
memory: 2Gi
|
||||||
securityContext:
|
|
||||||
allowPrivilegeEscalation: false
|
|
||||||
readOnlyRootFilesystem: false
|
|
||||||
capabilities:
|
|
||||||
drop: ["ALL"]
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: config
|
- name: config
|
||||||
configMap:
|
configMap:
|
||||||
name: litellm-config
|
name: litellm-config
|
||||||
- name: cache
|
|
||||||
emptyDir: {}
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue