mirror of
https://github.com/norandom/OpenUltraSAST.git
synced 2026-10-16 19:59:26 +00:00
Implemented with Codex. Cluster deploy pending the k3s kubeconfig and the scoped account. Co-Authored-By: Claude Opus 5.5 <[email protected]>
64 lines
1.6 KiB
YAML
64 lines
1.6 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: ousast-engine-worker
|
|
spec:
|
|
replicas: 2
|
|
strategy:
|
|
type: Recreate
|
|
selector:
|
|
matchLabels:
|
|
app: ousast-engine-worker
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: ousast-engine-worker
|
|
spec:
|
|
automountServiceAccountToken: false
|
|
terminationGracePeriodSeconds: 900
|
|
securityContext:
|
|
runAsNonRoot: true
|
|
runAsUser: 1000
|
|
runAsGroup: 1000
|
|
affinity:
|
|
podAntiAffinity:
|
|
requiredDuringSchedulingIgnoredDuringExecution:
|
|
- labelSelector:
|
|
matchLabels:
|
|
app: ousast-engine-worker
|
|
topologyKey: kubernetes.io/hostname
|
|
containers:
|
|
- name: worker
|
|
image: engine-image
|
|
command: [python, /app/benchmarks/learn/engine_worker_service.py]
|
|
envFrom:
|
|
- secretRef:
|
|
name: ousast-engine-s3
|
|
env:
|
|
- name: ENGINE_IMAGE
|
|
value: engine-image
|
|
resources:
|
|
requests:
|
|
memory: 3Gi
|
|
cpu: '1'
|
|
limits:
|
|
memory: 3Gi
|
|
securityContext:
|
|
allowPrivilegeEscalation: false
|
|
capabilities:
|
|
drop: [ALL]
|
|
ports:
|
|
- name: health
|
|
containerPort: 8080
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /healthz
|
|
port: health
|
|
periodSeconds: 5
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /healthz
|
|
port: health
|
|
initialDelaySeconds: 15
|
|
periodSeconds: 10
|