diff --git a/k8s/apps/stt/deployment.yaml b/k8s/apps/stt/deployment.yaml index 88c9d7c..79058d9 100644 --- a/k8s/apps/stt/deployment.yaml +++ b/k8s/apps/stt/deployment.yaml @@ -17,9 +17,19 @@ spec: # (cf. README : kubectl create secret docker-registry ghcr-pull ...) imagePullSecrets: - name: ghcr-pull + # Conformité PodSecurity "restricted" (namespace ai) + securityContext: + runAsNonRoot: true + runAsUser: 1000 + seccompProfile: + type: RuntimeDefault containers: - name: stt-server image: ghcr.io/alkatrazz24/funk-stt-server:latest + securityContext: + allowPrivilegeEscalation: false + capabilities: + drop: ["ALL"] ports: - containerPort: 8000 env: