GKE — PersistentVolumeClaim

pvc.yml:

apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: persistent-storage
  namespace: staging
spec:
  accessModes:
    - ReadOnlyMany
  volumeMode: Filesystem
  resources:
    requests:
      storage: 30Gi
  storageClassName: standard

 

Создаем PVC:

kubectl create -f pvc.yml

 

Проверяем:

kubectl get pvc -n staging
NAME                 STATUS   VOLUME                                     CAPACITY   ACCESS MODES   STORAGECLASS   AGE
persistent-storage   Bound    pvc-bd856312-9be4-11e9-bb1d-42010a9c01f3   30Gi       ROX            standard       17s
0 0 vote
Article Rating

Метки: Метки

Подписаться
Уведомление о
guest
0 Комментарий
Inline Feedbacks
View all comments