Skip to content

Commit

Permalink
feat: Add persistent volume for the media directory
Browse files Browse the repository at this point in the history
  • Loading branch information
kesara committed Jun 4, 2024
1 parent 32925bc commit eb40f82
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions k8s/ietfweb/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: deployment
spec:
template:
spec:
containers:
- image: "ghcr.io/ietf-tools/www:$APP_IMAGE_TAG"
name: ietfwww
volumeMounts:
- name: dt-vol
mountPath: /a
- name: www-media
mountPath: /app/media
dnsPolicy: ClusterFirst
restartPolicy: Always
terminationGracePeriodSeconds: 30
volumeClaimTemplates:
- metadata:
name: dt-vol
spec:
accessModes:
- ReadOnlyMany
- metadata:
name: www-media
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 5Gi
storageClassName: "generic"

0 comments on commit eb40f82

Please sign in to comment.