Create a new PV

Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
This commit is contained in:
Marcus Noble 2024-04-06 14:36:12 +01:00
parent c21b70cb91
commit 54a40d7a8f
Signed by: AverageMarcus
GPG Key ID: B8F2DB8A7AEBAF78
2 changed files with 16 additions and 27 deletions

View File

@ -29,7 +29,7 @@ metadata:
name: node-red
namespace: node-red
spec:
replicas: 1
replicas: 0
strategy:
type: Recreate
selector:

View File

@ -1,27 +1,18 @@
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
---
# apiVersion: v1
# kind: PersistentVolume
# metadata:
# name: pvc-2fee8e5b-4e91-4d9a-8721-58e62c7a0a53
# spec:
# accessModes:
# - ReadWriteOnce
# capacity:
# storage: 5Gi
# csi:
# driver: csi.scaleway.com
# fsType: ext4
# persistentVolumeReclaimPolicy: Retain
# volumeMode: Filesystem
# ---
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
@ -33,6 +24,4 @@ spec:
resources:
requests:
storage: 5Gi
storageClassName: scw-bssd
volumeName: pvc-2fee8e5b-4e91-4d9a-8721-58e62c7a0a53
---