Please remember that the storage limit you set when creating or editing a Kubernetes cluster represents the maximum total size that all volumes in that specific cluster can reach.
To create Block Storage on a Kubernetes cluster, you need to use the APIs. The most common way to use Kubernetes APIs is through the
Kubectl client.
The client must be configured using the configuration file downloadable from the cluster details page:
- sign in to the New Cloud Management Platform;
- in the left vertical menu, under YOUR SERVICES, select Manage > Containers;
- in the Kubernetes Cluster area, find the cluster you want to edit and click on the three dots ... at the end of the line;
- select Manage cluster from the list of options;
- this takes you to the cluster details page;
- click on Cluster actions on the right and select Download file config from the list of options;
An example of how to create block storage:
$ kubectl apply -f creablockstorage.yaml
Where the content of the file is:
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: wp-pv-claim
labels:
app: wordpress
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 20Gi
Please remember that volumes created in a specific zone are only visable in that same zone.