diff --git a/manifests/daily-workout/deployment.yaml b/manifests/daily-workout/deployment.yaml index cb37148..a9b2c10 100644 --- a/manifests/daily-workout/deployment.yaml +++ b/manifests/daily-workout/deployment.yaml @@ -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 \ No newline at end of file diff --git a/manifests/daily-workout/pv.yaml b/manifests/daily-workout/pv.yaml new file mode 100644 index 0000000..a4fd4c6 --- /dev/null +++ b/manifests/daily-workout/pv.yaml @@ -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