指定动态创建的 EBS 卷名称 [英] Specify Dynamically Created EBS Volume Names

查看:32
本文介绍了指定动态创建的 EBS 卷名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 EKS 上运行的 K8s 集群中动态创建 Persistent Volumes 时,使用 gp2 作为默认存储类,是否可以命名创建的 EBS 卷?

When dynamically creating Persistent Volumes in a K8s cluster running on EKS, using gp2 as the default storage class, is it possible to name the EBS volumes that are created?

目前,它们的名称类似于 kubernetes-dynamic-pvc-d8896767-a1c9-11e9-bb21-0e3fcd7b2ecc,但卷管理最好让标签更清晰.

Currently, they get names like kubernetes-dynamic-pvc-d8896767-a1c9-11e9-bb21-0e3fcd7b2ecc but it would be nice for volume management to have the labels be more clear.

推荐答案

动态配置由 admission controller,所以没有直接的方法来控制卷的命名.

Dynamic provisioning is managed by admission controller, so there's no straight way to control naming of the volumes.

这篇关于指定动态创建的 EBS 卷名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆