robosats-deploy/k8s/base/gunicorn/deployment.yml
Reckless_Satoshi a069f98a1a init
2023-09-29 05:10:16 -07:00

51 lines
1.4 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: gunicorn
labels:
app: gunicorn
spec:
selector:
matchLabels:
app: gunicorn
replicas: 1
strategy:
type: RollingUpdate
template:
metadata:
labels:
app: gunicorn
spec:
containers:
- name: gunicorn
image: recksato/robosats:534e4c0
# imagePullPolicy: IfNotPresent
resources:
limits:
cpu: "1000m"
memory: "500Mi"
requests:
cpu: "20m"
memory: "50Mi"
envFrom:
- configMapRef:
name: robosats-configmap
- secretRef:
name: robosats-secret
- secretRef:
name: postgres-secret # Using the Secret postgres-secret
command: ["gunicorn","--bind", ":8000", "--max-requests", "1000", "--max-requests-jitter", "200", "-w", "2", "robosats.wsgi:application"] # ["python3", "manage.py", "runserver", "0.0.0.0:8000"]
ports:
- containerPort: 8000
volumeMounts:
- name: static-data
mountPath: /usr/src/static
- name: lnd-data
mountPath: /lnd
volumes:
- name: static-data
persistentVolumeClaim:
claimName: static-pvc
- name: lnd-data
persistentVolumeClaim:
claimName: lnd-pvc