Ensure PVs are retained

Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
This commit is contained in:
Marcus Noble 2023-04-12 10:06:01 +01:00
parent b0ca3f980e
commit ccc49c6855
Signed by: AverageMarcus
GPG Key ID: B8F2DB8A7AEBAF78
12 changed files with 245 additions and 73 deletions

View File

@ -13,22 +13,6 @@ type: Opaque
--- ---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: focalboard
namespace: focalboard
labels:
app.kubernetes.io/name: focalboard
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 2Gi
---
apiVersion: v1 apiVersion: v1
kind: Service kind: Service
metadata: metadata:

View File

@ -0,0 +1,41 @@
apiVersion: v1
kind: PersistentVolume
metadata:
annotations:
pv.kubernetes.io/provisioned-by: csi.scaleway.com
finalizers:
- kubernetes.io/pv-protection
- external-attacher/csi-scaleway-com
name: pvc-df17f08f-a966-40a0-bc72-26cf2adb89a1
spec:
accessModes:
- ReadWriteOnce
capacity:
storage: 2Gi
csi:
driver: csi.scaleway.com
fsType: ext4
volumeAttributes:
encrypted: "false"
storage.kubernetes.io/csiProvisionerIdentity: 1658355449315-8081-csi.scaleway.com
volumeHandle: fr-par-1/d823f97e-7ef0-4fb0-97ac-5a838356c355
persistentVolumeReclaimPolicy: Retain
storageClassName: scw-bssd
volumeMode: Filesystem
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: focalboard
namespace: focalboard
labels:
app.kubernetes.io/name: focalboard
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 2Gi
volumeName: pvc-df17f08f-a966-40a0-bc72-26cf2adb89a1
---

View File

@ -77,7 +77,6 @@ spec:
resources: resources:
requests: requests:
memory: 400Mi memory: 400Mi
volumeMounts: volumeMounts:
- mountPath: /data - mountPath: /data
name: git-data name: git-data

47
manifests/gitea/pvs.yaml Normal file
View File

@ -0,0 +1,47 @@
apiVersion: v1
kind: PersistentVolume
metadata:
annotations:
pv.kubernetes.io/provisioned-by: csi.scaleway.com
creationTimestamp: "2020-05-02T15:38:54Z"
finalizers:
- kubernetes.io/pv-protection
- external-attacher/csi-scaleway-com
name: pvc-02bd903f-e5ac-4c9f-a976-9fe995a352b2
spec:
accessModes:
- ReadWriteOnce
capacity:
storage: 20Gi
csi:
driver: csi.scaleway.com
fsType: ext4
volumeAttributes:
storage.kubernetes.io/csiProvisionerIdentity: 1588413765965-1847-csi.scaleway.com
volumeHandle: fr-par-1/2ef4f017-2d41-4662-bfa4-df0dcf2085a1
persistentVolumeReclaimPolicy: Retain
storageClassName: scw-bssd-retain
volumeMode: Filesystem
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
annotations:
pv.kubernetes.io/bind-completed: "yes"
pv.kubernetes.io/bound-by-controller: "yes"
volume.beta.kubernetes.io/storage-provisioner: csi.scaleway.com
finalizers:
- kubernetes.io/pvc-protection
labels:
app: git
name: git-data-git-0
namespace: gitea
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 20Gi
storageClassName: scw-bssd-retain
volumeMode: Filesystem
volumeName: pvc-02bd903f-e5ac-4c9f-a976-9fe995a352b2

View File

@ -11,19 +11,6 @@ type: Opaque
--- ---
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: mealie
namespace: mealie
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 2Gi
---
apiVersion: apps/v1 apiVersion: apps/v1
kind: Deployment kind: Deployment
metadata: metadata:

39
manifests/mealie/pvs.yaml Normal file
View File

@ -0,0 +1,39 @@
apiVersion: v1
kind: PersistentVolume
metadata:
annotations:
pv.kubernetes.io/provisioned-by: csi.scaleway.com
finalizers:
- kubernetes.io/pv-protection
- external-attacher/csi-scaleway-com
name: pvc-afe7fbb6-1f5a-4169-bad1-c9d43752ee7a
spec:
accessModes:
- ReadWriteOnce
capacity:
storage: 2Gi
csi:
driver: csi.scaleway.com
fsType: ext4
volumeAttributes:
encrypted: "false"
storage.kubernetes.io/csiProvisionerIdentity: 1646426415842-8081-csi.scaleway.com
volumeHandle: fr-par-1/efbe7dc1-4660-4db8-a3b4-42114075a318
persistentVolumeReclaimPolicy: Retain
storageClassName: scw-bssd
volumeMode: Filesystem
---
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: mealie
namespace: mealie
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 2Gi
volumeName: pvc-afe7fbb6-1f5a-4169-bad1-c9d43752ee7a
---

View File

@ -161,25 +161,6 @@ data:
); );
} }
--- ---
# Source: nextcloud/templates/nextcloud-pvc.yaml
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: nextcloud-nextcloud-nextcloud
labels:
app.kubernetes.io/name: nextcloud
helm.sh/chart: nextcloud-2.6.3
app.kubernetes.io/instance: nextcloud-nextcloud
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/component: app
spec:
accessModes:
- "ReadWriteOnce"
resources:
requests:
storage: "5Gi"
storageClassName: "scw-bssd-retain"
---
# Source: nextcloud/templates/service.yaml # Source: nextcloud/templates/service.yaml

View File

@ -0,0 +1,43 @@
apiVersion: v1
kind: PersistentVolume
metadata:
annotations:
pv.kubernetes.io/provisioned-by: csi.scaleway.com
finalizers:
- kubernetes.io/pv-protection
- external-attacher/csi-scaleway-com
name: pvc-db95ada8-d8e4-400a-acea-7d594ecffa36
spec:
accessModes:
- ReadWriteOnce
capacity:
storage: 5Gi
csi:
driver: csi.scaleway.com
fsType: ext4
volumeAttributes:
storage.kubernetes.io/csiProvisionerIdentity: 1588413765965-1847-csi.scaleway.com
volumeHandle: fr-par-1/5c16182d-f742-4ae5-a70c-386aa356f906
persistentVolumeReclaimPolicy: Retain
storageClassName: scw-bssd-retain
volumeMode: Filesystem
---
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: nextcloud-nextcloud-nextcloud
labels:
app.kubernetes.io/name: nextcloud
helm.sh/chart: nextcloud-2.6.3
app.kubernetes.io/instance: nextcloud-nextcloud
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/component: app
spec:
accessModes:
- "ReadWriteOnce"
resources:
requests:
storage: "5Gi"
storageClassName: "scw-bssd-retain"
volumeName: pvc-db95ada8-d8e4-400a-acea-7d594ecffa36
---

View File

@ -9,18 +9,6 @@ metadata:
kube-1password/secret-text-key: settings.js kube-1password/secret-text-key: settings.js
type: Opaque type: Opaque
--- ---
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: node-red
namespace: node-red
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 5Gi
---
apiVersion: v1 apiVersion: v1
kind: Service kind: Service
metadata: metadata:

View File

@ -0,0 +1,37 @@
apiVersion: v1
kind: PersistentVolume
metadata:
annotations:
pv.kubernetes.io/provisioned-by: csi.scaleway.com
finalizers:
- kubernetes.io/pv-protection
- external-attacher/csi-scaleway-com
name: pvc-2fee8e5b-4e91-4d9a-8721-58e62c7a0a53
spec:
accessModes:
- ReadWriteOnce
capacity:
storage: 5Gi
csi:
driver: csi.scaleway.com
fsType: ext4
volumeAttributes:
storage.kubernetes.io/csiProvisionerIdentity: 1591355612436-1847-csi.scaleway.com
volumeHandle: fr-par-1/85ad772e-b2f2-4ba5-8706-b2381223cf4d
persistentVolumeReclaimPolicy: Retain
storageClassName: scw-bssd
volumeMode: Filesystem
---
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: node-red
namespace: node-red
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 5Gi
volumeName: pvc-2fee8e5b-4e91-4d9a-8721-58e62c7a0a53
---

38
manifests/rss/pvs.yaml Normal file
View File

@ -0,0 +1,38 @@
apiVersion: v1
kind: PersistentVolume
metadata:
annotations:
pv.kubernetes.io/provisioned-by: csi.scaleway.com
finalizers:
- kubernetes.io/pv-protection
- external-attacher/csi-scaleway-com
name: pvc-47f91479-7386-439b-b95a-c457663d76db
spec:
accessModes:
- ReadWriteOnce
capacity:
storage: 1Gi
csi:
driver: csi.scaleway.com
fsType: ext4
volumeAttributes:
encrypted: "false"
storage.kubernetes.io/csiProvisionerIdentity: 1602958408485-1847-csi.scaleway.com
volumeHandle: fr-par-1/145b4a54-1ba1-409e-9399-30ebce7058af
persistentVolumeReclaimPolicy: Retain
storageClassName: scw-bssd
volumeMode: Filesystem
---
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: rss-db
namespace: rss
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
volumeName: pvc-47f91479-7386-439b-b95a-c457663d76db
---

View File

@ -1,15 +1,3 @@
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: rss-db
namespace: rss
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
---
apiVersion: v1 apiVersion: v1
kind: Secret kind: Secret
metadata: metadata: