66 lines
1.7 KiB
YAML
66 lines
1.7 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: buzz-sheet-worker
|
|
labels:
|
|
app.kubernetes.io/name: buzz-sheet
|
|
app.kubernetes.io/component: worker
|
|
spec:
|
|
replicas: 1
|
|
revisionHistoryLimit: 3
|
|
strategy:
|
|
type: RollingUpdate
|
|
rollingUpdate:
|
|
maxSurge: 1
|
|
maxUnavailable: 0
|
|
selector:
|
|
matchLabels:
|
|
app.kubernetes.io/name: buzz-sheet
|
|
app.kubernetes.io/component: worker
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app.kubernetes.io/name: buzz-sheet
|
|
app.kubernetes.io/component: worker
|
|
spec:
|
|
automountServiceAccountToken: false
|
|
terminationGracePeriodSeconds: 35
|
|
securityContext:
|
|
runAsNonRoot: true
|
|
seccompProfile:
|
|
type: RuntimeDefault
|
|
containers:
|
|
- name: worker
|
|
image: buzz-sheet-app
|
|
imagePullPolicy: IfNotPresent
|
|
command: ["bun", "worker/outbox-worker.js"]
|
|
envFrom:
|
|
- configMapRef:
|
|
name: buzz-sheet-config
|
|
- secretRef:
|
|
name: buzz-sheet-env
|
|
env:
|
|
- name: NEXT_DEPLOYMENT_ID
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
name: buzz-sheet-config
|
|
key: NEXT_DEPLOYMENT_ID
|
|
resources:
|
|
requests:
|
|
cpu: 100m
|
|
memory: 128Mi
|
|
limits:
|
|
cpu: 500m
|
|
memory: 512Mi
|
|
securityContext:
|
|
allowPrivilegeEscalation: false
|
|
capabilities:
|
|
drop: ["ALL"]
|
|
readOnlyRootFilesystem: true
|
|
volumeMounts:
|
|
- name: temporary
|
|
mountPath: /tmp
|
|
volumes:
|
|
- name: temporary
|
|
emptyDir: {}
|