Skip to content

Commit

Permalink
Add PersistentVolume
Browse files Browse the repository at this point in the history
  • Loading branch information
gerrited committed Jun 9, 2024
1 parent f768868 commit cb5fe4f
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
7 changes: 7 additions & 0 deletions manifests/daily-workout/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,10 @@ spec:
env:
- name: NODE_ENV
value: "production"
volumeMounts:
- mountPath: "/app/data"
name: workout-volume
volumes:
- name: workout-volume
persistentVolumeClaim:
claimName: workout-pvc
24 changes: 24 additions & 0 deletions manifests/daily-workout/pv.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
apiVersion: v1
kind: PersistentVolume
metadata:
name: workout-pv
spec:
capacity:
storage: 100m
accessModes:
- ReadWriteOnce
hostPath:
path: "/mnt/data/workout"

---

apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: workout-pvc
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 100m

0 comments on commit cb5fe4f

Please sign in to comment.