Sziasztok,
itt olvasom: https://kubernetes.io/blog/2018/07/12/resizing-persistent-volumes-using…
hogy egy letrehozott pvc merete valtoztathato.
Az en esetemben:
$ kul get sc
NAME PROVISIONER RECLAIMPOLICY VOLUMEBINDINGMODE ALLOWVOLUMEEXPANSION AGE
vsphere (default) kubernetes.io/vsphere-volume Delete Immediate true 2y302d
vsphere-storage-class kubernetes.io/vsphere-volume Delete Immediate false 10d
$ kul get pvc -n test4-ns-pkn
NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS AGE
pvc-testpvcexpansion Bound pvc-1b2618cb-2687-4242-a478-d0f9d6306288 1Gi RWO vsphere 30m
Itt editalom a nagysagot 1G-rol 2G-ra:
# kul edit pvc pvc-testpvcexpansion -n mynamespace
# Please edit the object below. Lines beginning with a '#' will be ignored,
# and an empty file will abort the edit. If an error occurs while saving this file will be
# reopened with the relevant failures.
#
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: kubernetes.io/vsphere-volume
creationTimestamp: "2023-11-13T03:33:11Z"
finalizers:
- kubernetes.io/pvc-protection
name: pvc-testpvcexpansion
namespace: mynamespace
resourceVersion: "503302910"
uid: 1b2618cb-2687-4242-a478-d0f9d6306288
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 2Gi #<--------------------------------------itt irtam at 1G-rol 2G-ra --------------------
storageClassName: vsphere
volumeMode: Filesystem
volumeName: pvc-1b2618cb-2687-4242-a478-d0f9d6306288
status:
accessModes:
- ReadWriteOnce
capacity:
storage: 1Gi
phase: Bound
Nos, ha az ehhez hozzarendelt pod-ot megsemmisitem (kul delete pod proba -n mynamespace)
es kiirom ujra a pvc yaml fajljat, nem latom, hogy elkezdodott volna a resizing.
$ kul get pvc pvc-testpvcexpansion -o yaml -n mynamespace
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: kubernetes.io/vsphere-volume
creationTimestamp: "2023-11-13T03:33:11Z"
finalizers:
- kubernetes.io/pvc-protection
name: pvc-testpvcexpansion
namespace: mynamespace
resourceVersion: "503302910"
uid: 1b2618cb-2687-4242-a478-d0f9d6306288
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 2Gi
storageClassName: vsphere
volumeMode: Filesystem
volumeName: pvc-1b2618cb-2687-4242-a478-d0f9d6306288
status:
accessModes:
- ReadWriteOnce
capacity:
storage: 1Gi
phase: Bound
Mi az, ami hianyzik az egeszbol vagy esetleg mi az, amit rosszul csinalok?
Koszonom elore a segitseget.
Ardi
UPDATE:
Ezt a hibat talaltam:
Ignoring the PVC: didn't find a plugin capable of expanding the volume; waiting for an external controll
er to process this PVC.