new config pvc
This commit is contained in:
parent
ed00c6c80d
commit
e43512abac
@ -35,4 +35,12 @@ spec:
|
||||
containerPort: 8080
|
||||
protocol: TCP
|
||||
resources: {}
|
||||
volumeMounts:
|
||||
- name: config
|
||||
mountPath: /app/user-data
|
||||
subpath: b2475220-0041-4aef-9436-ec17e00485a9
|
||||
restartPolicy: Always
|
||||
volumes:
|
||||
- name: config
|
||||
persistentVolumeClaim:
|
||||
claimName: dashy
|
||||
|
@ -5,3 +5,4 @@ resources:
|
||||
- ingress.yaml
|
||||
- namespace.yaml
|
||||
- service.yaml
|
||||
- pvc.yaml
|
||||
|
44
apps/dashy/base/pvc.yaml
Normal file
44
apps/dashy/base/pvc.yaml
Normal file
@ -0,0 +1,44 @@
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: dashy-pvc
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteMany
|
||||
resources:
|
||||
requests:
|
||||
storage: 100Mi
|
||||
storageClassName: ""
|
||||
volumeMode: Filesystem
|
||||
# volumeName should be same as PV name
|
||||
volumeName: dashy
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: PersistentVolume
|
||||
metadata:
|
||||
name: dashy
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteMany
|
||||
capacity:
|
||||
storage: 100Mi
|
||||
csi:
|
||||
driver: rook-ceph.cephfs.csi.ceph.com
|
||||
nodeStageSecretRef:
|
||||
# node stage secret name
|
||||
name: rook-csi-cephfs-node-user
|
||||
# node stage secret namespace where above secret is created
|
||||
namespace: rook-ceph
|
||||
volumeAttributes:
|
||||
# optional file system to be mounted
|
||||
# "fsName": "myfs"
|
||||
# Required options from storageclass parameters need to be added in volumeAttributes
|
||||
"clusterID": "rook-ceph"
|
||||
"staticVolume": "true"
|
||||
"rootPath": /volumes/csi/dashy
|
||||
# volumeHandle can be anything, need not to be same
|
||||
# as PV name or volume name. keeping same for brevity
|
||||
volumeHandle: dashy
|
||||
persistentVolumeReclaimPolicy: Retain
|
||||
volumeMode: Filesystem
|
||||
|
Loading…
x
Reference in New Issue
Block a user