Created
April 21, 2021 10:24
-
-
Save lemmy04/5c451bb92bf60c757c7611391e2617a3 to your computer and use it in GitHub Desktop.
k3s deployment file for z5bot
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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