FlexVolume
Last updated
{
"status": "<Success/Failure/Not supported>",
"message": "<Reason for success/failure>",
"device": "<Path to the device attached. This field is valid only for attach & waitforattach call-outs>",
"volumeName": "<Cluster wide unique name of the volume. Valid only for getvolumename call-out>",
"attached": "<True/False (Return true if volume is attached on the node. Valid only for isattached call-out)>",
"capabilities":
{
"attach": "<True/False (Return true if the driver implements attach and detach)>"
}
}apiVersion: v1
kind: Pod
metadata:
name: nginx
namespace: default
spec:
containers:
- name: nginx
image: nginx
volumeMounts:
- name: test
mountPath: /data
ports:
- containerPort: 80
volumes:
- name: test
flexVolume:
driver: "kubernetes.io/lvm"
fsType: "ext4"
options:
volumeID: "vol1"
size: "1000m"
volumegroup: "kube_vg"