mirror of
https://github.com/acedemand/kubernetes-essentials.git
synced 2021-08-24 18:29:57 +03:00
auto extend
This commit is contained in:
12
08-storage/auto-extends/01-pvc.yaml
Normal file
12
08-storage/auto-extends/01-pvc.yaml
Normal file
@@ -0,0 +1,12 @@
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: myclaim
|
||||
namespace: default
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
resources:
|
||||
requests:
|
||||
storage: 14Gi
|
||||
storageClassName: standard
|
||||
9
08-storage/auto-extends/01-storageclass.yaml
Normal file
9
08-storage/auto-extends/01-storageclass.yaml
Normal file
@@ -0,0 +1,9 @@
|
||||
apiVersion: storage.k8s.io/v1
|
||||
kind: StorageClass
|
||||
metadata:
|
||||
name: standard
|
||||
parameters:
|
||||
type: pd-standard
|
||||
provisioner: kubernetes.io/gce-pd
|
||||
allowVolumeExpansion: true
|
||||
reclaimPolicy: Delete
|
||||
5
08-storage/auto-extends/ReadMe.md
Normal file
5
08-storage/auto-extends/ReadMe.md
Normal file
@@ -0,0 +1,5 @@
|
||||
### Auto extend
|
||||
https://kubernetes.io/blog/2018/07/12/resizing-persistent-volumes-using-kubernetes/
|
||||
In Kubernetes v1.11 the persistent volume expansion feature is being promoted to beta. This feature allows users to easily resize an existing volume by editing the PersistentVolumeClaim (PVC) object. Users no longer have to manually interact with the storage backend or delete and recreate PV and PVC objects to increase the size of a volume. Shrinking persistent volumes is not supported.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user