mirror of
https://github.com/RoboSats/robosats-deploy.git
synced 2025-08-07 02:20:06 +00:00
44 lines
1.1 KiB
YAML
44 lines
1.1 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: clean-orders
|
|
labels:
|
|
app: clean-orders
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
app: clean-orders
|
|
replicas: 1
|
|
strategy:
|
|
type: RollingUpdate
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: clean-orders
|
|
spec:
|
|
containers:
|
|
- name: clean-orders
|
|
image: recksato/robosats:534e4c0
|
|
imagePullPolicy: IfNotPresent
|
|
resources:
|
|
limits:
|
|
cpu: "1000m"
|
|
memory: "500Mi"
|
|
requests:
|
|
cpu: "10m"
|
|
memory: "50Mi"
|
|
envFrom:
|
|
- configMapRef:
|
|
name: robosats-configmap
|
|
- secretRef:
|
|
name: robosats-secret
|
|
- secretRef:
|
|
name: postgres-secret # Using the Secret postgres-secret
|
|
command: ["python3", "manage.py", "clean_orders"]
|
|
volumeMounts:
|
|
- name: lnd-data
|
|
mountPath: /lnd
|
|
volumes:
|
|
- name: lnd-data
|
|
persistentVolumeClaim:
|
|
claimName: lnd-pvc |