55 lines
2.0 KiB
YAML
55 lines
2.0 KiB
YAML
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: droboticflow-annotation-processor
|
|
namespace: __NAMESPACE__
|
|
spec:
|
|
replicas: 1
|
|
strategy:
|
|
type: Recreate
|
|
selector:
|
|
matchLabels: {app: droboticflow-annotation-processor}
|
|
template:
|
|
metadata:
|
|
labels: {app: droboticflow-annotation-processor}
|
|
spec:
|
|
automountServiceAccountToken: false
|
|
terminationGracePeriodSeconds: 30
|
|
imagePullSecrets:
|
|
- name: __K8S_IMAGE_PULL_SECRET_NAME__
|
|
containers:
|
|
- name: processor
|
|
image: __API_IMAGE__
|
|
command: [/usr/local/bin/droboticflow-api]
|
|
env:
|
|
- {name: ANNOTATION_PROCESSOR_MODE, value: processor}
|
|
- {name: ANNOTATION_PROCESSOR_CONCURRENCY, value: "1"}
|
|
- {name: ANNOTATION_INDEX_BACKFILL, value: "0"}
|
|
- {name: WORKSPACE_MOUNT_PATH, value: "__WORKSPACE_MOUNT_PATH__"}
|
|
- {name: GLOBAL_BOS_ENDPOINT, value: "__BOS_ENDPOINT__"}
|
|
- {name: ANNOTATION_WORKSPACE_CONNECTION_ID, value: "__ANNOTATION_WORKSPACE_CONNECTION_ID__"}
|
|
- {name: ANNOTATION_WORKSPACE_BUCKET, value: "__ANNOTATION_WORKSPACE_BUCKET__"}
|
|
- name: MONGO_DB
|
|
valueFrom:
|
|
configMapKeyRef: {name: droboticflow-config, key: MONGO_DB}
|
|
- name: MONGO_URI
|
|
valueFrom:
|
|
secretKeyRef: {name: droboticflow-mongo-secret, key: MONGO_URI}
|
|
ports:
|
|
- {name: health, containerPort: 3003}
|
|
readinessProbe:
|
|
httpGet: {path: /ready, port: health}
|
|
periodSeconds: 5
|
|
resources:
|
|
requests: {cpu: "1", memory: 512Mi}
|
|
limits: {cpu: "4", memory: 8Gi}
|
|
volumeMounts:
|
|
- {name: workspace, mountPath: "__WORKSPACE_MOUNT_PATH__"}
|
|
- {name: scratch, mountPath: /tmp}
|
|
volumes:
|
|
- name: workspace
|
|
persistentVolumeClaim: {claimName: __WORKSPACE_PVC_NAME__}
|
|
- name: scratch
|
|
emptyDir: {sizeLimit: 20Gi}
|