Fixed operation not permitted error

This commit is contained in:
斟酌 鵬兄 2022-03-16 03:16:36 +09:00
parent 7fb7f01dc6
commit 9e1cb7f8a8

View File

@ -12,10 +12,6 @@ spec:
labels:
app: astrojs
spec:
securityContext:
runAsGroup: 1001
runAsNonRoot: true
runAsUser: 1001
imagePullSecrets:
- name: registry-auth
initContainers:
@ -25,14 +21,16 @@ spec:
- chown
- 1001:1001
- /app/cache
securityContext:
runAsNonRoot: false
volumeMounts:
- name: cache
mountPath: "/app/cache"
containers:
- name: web
image: registry.k8s.astropenguin.net/astrojs:2022.03.15.04
securityContext:
runAsGroup: 1001
runAsNonRoot: true
runAsUser: 1001
env:
- name: FLASK_DEBUG
value: "0"
@ -47,6 +45,10 @@ spec:
image: redis:6.0.8-alpine
- name: compiler
image: registry.k8s.astropenguin.net/astrojs:2022.03.15.04
securityContext:
runAsGroup: 1001
runAsNonRoot: true
runAsUser: 1001
env:
- name: RUN_MODE
value: "tasks"