【发布时间】:2019-04-11 12:00:25
【问题描述】:
我正在尝试创建自定义 FlexVolume,但无法附加/挂载并显示超时消息。在哪里可以找到日志以确定失败的原因?
这是我的 StatefulSet 规范:
kind: StatefulSet
...
spec:
...
template:
...
spec:
...
volumes:
- name: "ignite-storage"
flexVolume:
driver: "co.mira/lvm"
fsType: "ext4"
options:
awsRegion: "us-east-1"
vols: "2"
tag: "ignite"
ebsType: "{{ ignite_storage_ebs_volume_type }}"
sizeGb: "{{ ignite_storage_ebs_volume_size_gb }}"
iopsPerGb: "2"
containers:
- name: ignite
...
volumeMounts:
- name: "ignite-storage"
mountPath: "..."
我的 FlexVolume 使用守护程序部署在所有节点上:/usr/libexec/kubernetes/kubelet-plugins/volume/exec/mira.co~lvm/lvm
【问题讨论】:
-
你能分享一下你是如何附加
FlexVolume的命令吗? -
当然。添加它。
标签: logging kubernetes mounted-volumes