diff --git a/apps/dashy/base/deployment.yaml b/apps/dashy/base/deployment.yaml index 6d011ed..1304cdd 100644 --- a/apps/dashy/base/deployment.yaml +++ b/apps/dashy/base/deployment.yaml @@ -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 diff --git a/apps/dashy/base/kustomization.yaml b/apps/dashy/base/kustomization.yaml index 104d4ba..333b0ef 100644 --- a/apps/dashy/base/kustomization.yaml +++ b/apps/dashy/base/kustomization.yaml @@ -5,3 +5,4 @@ resources: - ingress.yaml - namespace.yaml - service.yaml +- pvc.yaml diff --git a/apps/dashy/base/pvc.yaml b/apps/dashy/base/pvc.yaml new file mode 100644 index 0000000..f75ff1d --- /dev/null +++ b/apps/dashy/base/pvc.yaml @@ -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 +