mirror of
https://github.com/jcreek/CosmicClash.git
synced 2026-09-11 00:14:00 +00:00
60 lines
1.7 KiB
YAML
60 lines
1.7 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: maintenance
|
|
namespace: cosmic-clash
|
|
labels:
|
|
app.kubernetes.io/name: maintenance
|
|
app.kubernetes.io/component: maintenance
|
|
spec:
|
|
replicas: 1
|
|
strategy:
|
|
type: Recreate
|
|
selector:
|
|
matchLabels:
|
|
app.kubernetes.io/name: maintenance
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app.kubernetes.io/name: maintenance
|
|
app.kubernetes.io/component: maintenance
|
|
spec:
|
|
terminationGracePeriodSeconds: 10
|
|
serviceAccountName: maintenance
|
|
automountServiceAccountToken: false
|
|
securityContext:
|
|
runAsNonRoot: true
|
|
runAsUser: 10001
|
|
runAsGroup: 10001
|
|
seccompProfile:
|
|
type: RuntimeDefault
|
|
containers:
|
|
- name: maintenance
|
|
image: ghcr.io/cosmic-clash/maintenance@sha256:0000000000000000000000000000000000000000000000000000000000000000
|
|
args:
|
|
- --dsn=$(COSMIC_CLASH_POSTGRES_DSN)
|
|
- --interval=1m
|
|
- --initial-connect-interval=1s
|
|
- --batch=100
|
|
- --stalled-allocation-batch=100
|
|
- --initial-connect-batch=100
|
|
- --live-abandonment-batch=100
|
|
securityContext:
|
|
allowPrivilegeEscalation: false
|
|
readOnlyRootFilesystem: true
|
|
capabilities:
|
|
drop: [ALL]
|
|
resources:
|
|
requests:
|
|
cpu: 50m
|
|
memory: 64Mi
|
|
limits:
|
|
cpu: 250m
|
|
memory: 256Mi
|
|
env:
|
|
- name: COSMIC_CLASH_POSTGRES_DSN
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: cosmic-clash-database
|
|
key: dsn
|