3
0
mirror of https://github.com/pragma-/pbot.git synced 2025-07-06 13:37:28 +02:00
pbot/k8s/candide-pbot.yaml
2024-03-11 23:25:14 -04:00

52 lines
1.1 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: candide-pbot
namespace: candide
labels:
app: candide-pbot
spec:
selector:
matchLabels:
app: candide-pbot
replicas: 1
strategy:
type: Recreate
template:
metadata:
labels:
app: candide-pbot
spec:
containers:
- name: candide-pbot
image: gcr.io/PROJECT_ID/REPOSITORY/IMAGE:GITHUB_SHA
workingDir: "/opt/pbot"
command: ["/opt/pbot/bin/pbot"]
args: ["data_dir=/mnt/persistent"]
volumeMounts:
- mountPath: /mnt/persistent
name: persistent
resources:
requests:
cpu: "0.1"
memory: 100Mi
limits:
cpu: "0.5"
memory: 500Mi
volumes:
- name: persistent
persistentVolumeClaim:
claimName: candide-storage
---
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: candide-storage
namespace: candide
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi