Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 15 additions & 2 deletions cluster/deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
apiVersion: apps/v1
kind: Deployment
kind: StatefulSet
metadata:
name: reactibot-deployment
name: reactibot
spec:
selector:
matchLabels:
app: reactibot
serviceName: "reactibot-service"
replicas: 1
template:
metadata:
Expand Down Expand Up @@ -58,3 +59,15 @@ spec:
secretKeyRef:
name: reactibot-env
key: REACTIBOT_API_KEY
volumeMounts:
- name: reactibot-data
mountPath: /data
volumeClaimTemplates:
- metadata:
name: reactibot-data
spec:
accessModes: ["ReadWriteOnce"]
storageClassName: "standard"
resources:
requests:
storage: 1Gi
2 changes: 1 addition & 1 deletion cluster/variable-config.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
varReference:
- kind: Deployment
- kind: StatefulSet
path: spec/template/spec/containers/image
14 changes: 14 additions & 0 deletions cluster/volume.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: v1
kind: PersistentVolume
metadata:
name: reactibot-pv
labels:
type: local
spec:
storageClassName: standard
capacity:
storage: 1Gi
accessModes:
- ReadWriteOnce
hostPath:
path: "/mnt/data/reactibot"
Loading
Loading