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 name: node-red
namespace: node-red namespace: node-red
spec: spec:
replicas: 1 replicas: 0
strategy: strategy:
type: Recreate type: Recreate
selector: selector:

View File

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