Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
k3s deployment file for z5bot
---
apiVersion: v1
kind: Namespace
metadata:
labels:
app: z5bot
name: z5bot
---
apiVersion: v1
kind: PersistentVolume
metadata:
name: stories-pv
namespace: z5bot
spec:
storageClassName: manual
capacity:
storage: 10Mi
accessModes:
- ReadWriteMany
hostPath:
path: "/home/mathias/work/k3s-appsrv.eregion.home/Z5Bot/stories"
---
apiVersion: v1
kind: PersistentVolume
metadata:
name: saves-pv
namespace: z5bot
spec:
storageClassName: manual
capacity:
storage: 10Mi
accessModes:
- ReadWriteMany
hostPath:
path: "/home/mathias/work/k3s-appsrv.eregion.home/Z5Bot/saves"
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
namespace: z5bot
name: stories-pvc
spec:
storageClassName: manual
accessModes:
- ReadWriteMany
resources:
requests:
storage: 10Mi
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
namespace: z5bot
name: saves-pvc
spec:
storageClassName: manual
accessModes:
- ReadWriteMany
resources:
requests:
storage: 10Mi
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: z5bot
namespace: z5bot
name: z5bot-app
spec:
replicas: 1
selector:
matchLabels:
app: z5bot
template:
metadata:
labels:
app: z5bot
spec:
volumes:
- name: saves-volume
persistentVolumeClaim:
claimName: saves-pvc
- name: stories-volume
persistentVolumeClaim:
claimName: stories-pvc
containers:
- image: docker.io/lemmy04/z5bot:0.0.4
name: z5bot-container
volumeMounts:
- name: stories-volume
mountPath: /home/z5bot/z5bot/stories
- name: saves-volume
mountPath: /home/z5bot/z5bot/saves
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment