Files
buzz-sheet/k8s/migration/job.yaml
T
gunshiz 50dce9eaf7
CI / Verify (push) Successful in 1m9s
CI / Build immutable images and deploy (push) Has been skipped
fix(deploy): align runtime identity and ingress
2026-08-29 06:52:32 +00:00

55 lines
1.4 KiB
YAML

apiVersion: batch/v1
kind: Job
metadata:
name: buzz-sheet-migrate
labels:
app.kubernetes.io/name: buzz-sheet
app.kubernetes.io/component: migration
spec:
backoffLimit: 3
activeDeadlineSeconds: 600
ttlSecondsAfterFinished: 86400
template:
metadata:
labels:
app.kubernetes.io/name: buzz-sheet
app.kubernetes.io/component: migration
spec:
restartPolicy: Never
automountServiceAccountToken: false
securityContext:
runAsNonRoot: true
runAsUser: 1000
runAsGroup: 1000
fsGroup: 1000
fsGroupChangePolicy: OnRootMismatch
seccompProfile:
type: RuntimeDefault
containers:
- name: migration
image: buzz-sheet-migrate
imagePullPolicy: IfNotPresent
envFrom:
- configMapRef:
name: buzz-sheet-config
- secretRef:
name: buzz-sheet-env
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: {}