2026-06-09 00:46:46 -03:00
|
|
|
# services/veles/backend-deployment.yaml
|
|
|
|
|
apiVersion: apps/v1
|
|
|
|
|
kind: Deployment
|
|
|
|
|
metadata:
|
|
|
|
|
name: veles-backend
|
|
|
|
|
namespace: veles
|
|
|
|
|
labels:
|
|
|
|
|
app: veles-backend
|
|
|
|
|
spec:
|
2026-06-09 15:47:33 -03:00
|
|
|
replicas: 1
|
2026-06-09 00:46:46 -03:00
|
|
|
revisionHistoryLimit: 2
|
|
|
|
|
selector:
|
|
|
|
|
matchLabels:
|
|
|
|
|
app: veles-backend
|
|
|
|
|
template:
|
|
|
|
|
metadata:
|
|
|
|
|
labels:
|
|
|
|
|
app: veles-backend
|
|
|
|
|
spec:
|
|
|
|
|
serviceAccountName: veles-backend
|
|
|
|
|
priorityClassName: veles-core
|
|
|
|
|
nodeSelector:
|
|
|
|
|
veles.bstein.dev/node-pool: oceanus
|
|
|
|
|
tolerations:
|
|
|
|
|
- key: veles.bstein.dev/simulation
|
|
|
|
|
operator: Equal
|
|
|
|
|
value: "true"
|
|
|
|
|
effect: NoSchedule
|
|
|
|
|
securityContext:
|
2026-06-09 15:47:33 -03:00
|
|
|
fsGroup: 10001
|
|
|
|
|
fsGroupChangePolicy: OnRootMismatch
|
2026-06-09 00:46:46 -03:00
|
|
|
seccompProfile:
|
|
|
|
|
type: RuntimeDefault
|
|
|
|
|
containers:
|
|
|
|
|
- name: backend
|
2026-06-09 18:35:21 -03:00
|
|
|
image: registry.bstein.dev/veles/veles-backend:0.1.0-6 # {"$imagepolicy": "veles:veles-backend"}
|
2026-06-09 00:46:46 -03:00
|
|
|
imagePullPolicy: IfNotPresent
|
|
|
|
|
ports:
|
|
|
|
|
- name: http
|
2026-06-09 12:54:34 -03:00
|
|
|
containerPort: 8796
|
2026-06-09 00:46:46 -03:00
|
|
|
protocol: TCP
|
2026-06-09 15:47:33 -03:00
|
|
|
readinessProbe:
|
|
|
|
|
httpGet:
|
|
|
|
|
path: /api/v1/ready
|
|
|
|
|
port: http
|
|
|
|
|
initialDelaySeconds: 5
|
|
|
|
|
periodSeconds: 10
|
|
|
|
|
livenessProbe:
|
|
|
|
|
httpGet:
|
|
|
|
|
path: /api/v1/live
|
|
|
|
|
port: http
|
|
|
|
|
initialDelaySeconds: 20
|
|
|
|
|
periodSeconds: 20
|
2026-06-09 00:46:46 -03:00
|
|
|
envFrom:
|
|
|
|
|
- configMapRef:
|
|
|
|
|
name: veles-app-config
|
2026-06-09 11:59:27 -03:00
|
|
|
- secretRef:
|
|
|
|
|
name: veles-runtime-secrets
|
2026-06-09 00:46:46 -03:00
|
|
|
resources:
|
|
|
|
|
requests:
|
2026-06-09 15:50:43 -03:00
|
|
|
cpu: 250m
|
|
|
|
|
memory: 512Mi
|
2026-06-09 00:46:46 -03:00
|
|
|
limits:
|
2026-06-09 15:50:43 -03:00
|
|
|
cpu: "1"
|
|
|
|
|
memory: 2Gi
|
2026-06-09 00:46:46 -03:00
|
|
|
securityContext:
|
|
|
|
|
runAsNonRoot: true
|
2026-06-09 15:47:33 -03:00
|
|
|
runAsUser: 10001
|
|
|
|
|
runAsGroup: 10001
|
2026-06-09 00:46:46 -03:00
|
|
|
allowPrivilegeEscalation: false
|
|
|
|
|
capabilities:
|
|
|
|
|
drop: ["ALL"]
|
|
|
|
|
volumeMounts:
|
|
|
|
|
- name: artifacts
|
|
|
|
|
mountPath: /data/veles-artifacts
|
|
|
|
|
volumes:
|
|
|
|
|
- name: artifacts
|
|
|
|
|
persistentVolumeClaim:
|
|
|
|
|
claimName: veles-artifacts
|