简体   繁体   English

我可以从节点(OpenEBS)运行mayactl吗?

[英]Can I run mayactl from my nodes (OpenEBS)?

I don't have access to the namespace openebs and maya-apiserver. 我无权访问名称空间openebs和maya-apiserver。 Can I run mayactl on my nodes to get the same information? 我可以在节点上运行mayactl以获得相同的信息吗? If yes, how does mayactl know which PVCs/PVs I have access to? 如果是,mayactl如何知道我可以访问哪些PVC / PV? How does it protect other volumes from accidental deletion via mayactl volume delete? 如何通过mayactl卷删除保护其他卷免于意外删除?

You can do it from maya-apiserver pod. 您可以从maya-apiserver窗格中进行操作。 You can do it with the below command in the master node. 您可以在主节点中使用以下命令来执行此操作。 kubectl exec -it <pod name> -n openebs bash

Once you are inside the pod, you can run required mayactl command 一旦进入吊舱,就可以运行所需的mayactl命令

Else you can run the command directly as per below format. 另外,您可以按照以下格式直接运行命令。

kubectl exec -it <pod name> -n openebs <required mayactl command>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM