67 lines
1.5 KiB
YAML
67 lines
1.5 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: airtrail
|
|
labels:
|
|
app: airtrail
|
|
spec:
|
|
replicas: 1
|
|
strategy:
|
|
type: Recreate
|
|
selector:
|
|
matchLabels:
|
|
app: airtrail
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: airtrail
|
|
spec:
|
|
securityContext:
|
|
fsGroup: 1000
|
|
containers:
|
|
- name: airtrail
|
|
image: johly/airtrail:latest
|
|
imagePullPolicy: Always
|
|
ports:
|
|
- name: http
|
|
containerPort: 3000
|
|
env:
|
|
- name: ORIGIN
|
|
value: https://at.hexor.cy
|
|
- name: DB_URL
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: airtrail-creds
|
|
key: DB_URL
|
|
- name: UPLOAD_LOCATION
|
|
value: /app/uploads
|
|
- name: BODY_SIZE_LIMIT
|
|
value: 20M
|
|
volumeMounts:
|
|
- name: uploads
|
|
mountPath: /app/uploads
|
|
resources:
|
|
requests:
|
|
cpu: 100m
|
|
memory: 256Mi
|
|
limits:
|
|
cpu: 1000m
|
|
memory: 1Gi
|
|
startupProbe:
|
|
tcpSocket:
|
|
port: http
|
|
periodSeconds: 10
|
|
failureThreshold: 30
|
|
readinessProbe:
|
|
tcpSocket:
|
|
port: http
|
|
periodSeconds: 10
|
|
livenessProbe:
|
|
tcpSocket:
|
|
port: http
|
|
periodSeconds: 30
|
|
volumes:
|
|
- name: uploads
|
|
persistentVolumeClaim:
|
|
claimName: airtrail-uploads
|