3
0
mirror of https://github.com/pragma-/pbot.git synced 2025-07-06 13:37:28 +02:00
pbot/k8s/deployment.yaml
Alex Belanger f246a7c329 Revert "Giving another try to daemon mode and StdinReader."
This reverts commit 11a67540b856a5e0aeee893ba4b559cb4c7c6d34.
2024-03-11 19:25:44 -04:00

52 lines
1.0 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: candide
namespace: candide
labels:
app: candide
spec:
selector:
matchLabels:
app: candide
replicas: 1
strategy:
type: Recreate
template:
metadata:
labels:
app: candide
spec:
containers:
- name: candide
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