小编Max*_*and的帖子

将解引用的智能指针的地址传递给需要原始指针的函数

(假设我正在使用一个需要使用原始指针的库或框架,)

使用拥有一些数据的智能指针,然后将解除保护的智能指针的地址传递给需要原始指针的函数是否有效?

c++ smart-pointers

9
推荐指数
2
解决办法
212
查看次数

在 EKS 集群中挂载 EFS:示例部署失败

我目前正在尝试创建 EFS 以在 EKS 集群中使用。我已按照所有说明进行操作,并且大部分情况下似乎一切正常。但是,当尝试从此处应用 multiple_pods 示例部署时,pod 无法成功挂载文件系统。PV 和 PVC 都绑定并且看起来不错,但是 pod 没有启动并产生以下错误消息:

  Warning  FailedMount       116s (x10 over 6m7s)   kubelet, ip-192-168-42-94.eu-central-1.compute.internal  MountVolume.SetUp failed for volume "efs-pv" : kubernetes.io/csi: mounter.SetupAt failed: rpc error: code = Internal desc = Could not mount "fs-080b8b50:/" at "/var/lib/kubelet/pods/3f7c898d-c3de-42e7-84e5-bf3b56e691ea/volumes/kubernetes.io~csi/efs-pv/mount": mount failed: exit status 1
Mounting command: mount
Mounting arguments: -t efs fs-080b8b50:/ /var/lib/kubelet/pods/3f7c898d-c3de-42e7-84e5-bf3b56e691ea/volumes/kubernetes.io~csi/efs-pv/mount
Output: Traceback (most recent call last):
  File "/sbin/mount.efs", line 1375, in <module>
    main()
  File "/sbin/mount.efs", line 1355, in main
    bootstrap_logging(config)
  File …
Run Code Online (Sandbox Code Playgroud)

encrypting-file-system amazon-ec2 amazon-web-services kubernetes amazon-eks

5
推荐指数
1
解决办法
2842
查看次数