Merge pull request '[lab] fix(k8s): fsGroup/non-root no overlay de lab' (#10) from fix/lab-nonroot-fsgroup into main
All checks were successful
CD / build (push) Successful in 5m20s
All checks were successful
CD / build (push) Successful in 5m20s
This commit is contained in:
commit
e95a513350
@ -16,14 +16,28 @@ spec:
|
|||||||
labels:
|
labels:
|
||||||
app: vanna-clubpetro
|
app: vanna-clubpetro
|
||||||
spec:
|
spec:
|
||||||
|
# A imagem roda como non-root (uid/gid 10001). fsGroup dá posse dos
|
||||||
|
# volumes (PVC) ao grupo 10001 pra que o processo consiga escrever no
|
||||||
|
# store/cache — sem isso o ChromaDB/CSV falha com Permission denied.
|
||||||
|
securityContext:
|
||||||
|
runAsNonRoot: true
|
||||||
|
runAsUser: 10001
|
||||||
|
runAsGroup: 10001
|
||||||
|
fsGroup: 10001
|
||||||
containers:
|
containers:
|
||||||
- name: vanna-clubpetro
|
- name: vanna-clubpetro
|
||||||
image: us-central1-docker.pkg.dev/corepetro/clubpetro-lab/vanna-clubpetro:lab-latest
|
image: us-central1-docker.pkg.dev/corepetro/clubpetro-lab/vanna-clubpetro:lab-latest
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
|
securityContext:
|
||||||
|
allowPrivilegeEscalation: false
|
||||||
|
capabilities:
|
||||||
|
drop: ["ALL"]
|
||||||
ports:
|
ports:
|
||||||
- name: http
|
- name: http
|
||||||
containerPort: 8765
|
containerPort: 8765
|
||||||
env:
|
env:
|
||||||
|
- name: HOME
|
||||||
|
value: /home/app
|
||||||
- name: VANNA_CORS_ORIGINS
|
- name: VANNA_CORS_ORIGINS
|
||||||
value: "https://lab.clubpetro.com,https://homologation.clubpetro.com"
|
value: "https://lab.clubpetro.com,https://homologation.clubpetro.com"
|
||||||
envFrom:
|
envFrom:
|
||||||
@ -57,7 +71,7 @@ spec:
|
|||||||
mountPath: /app/data_storage
|
mountPath: /app/data_storage
|
||||||
subPath: data_storage
|
subPath: data_storage
|
||||||
- name: data
|
- name: data
|
||||||
mountPath: /root/.cache/chroma
|
mountPath: /home/app/.cache/chroma
|
||||||
subPath: chroma-onnx-cache
|
subPath: chroma-onnx-cache
|
||||||
volumes:
|
volumes:
|
||||||
- name: data
|
- name: data
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user