在AWS EKS k8s、EFS nfs、mysql、changing ownership of '/var/lib/mysql/': Operation notpermitted

在aws eks efs中配置mysql报错

2021-02-19 02:49:01+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 5.7.33-1debian10 started.
chown: changing ownership of '/var/lib/mysql/': Operation not permitted

在配置EFS Access point (接入点)的时候,POSIX user 和 Owner user ID 需要配置为0 (意味着是root用户)

NFS默认是squash_all模式,但是要想使用NFS目录,将目录映射到docker容器中,必须要配置成no_root_squash模式才行,否则root用户无权限使用nfs的volume来映射docker容器中的目录!!!

no_root_squash模式:是登入 NFS 主机使用分享目录的使用者,如果是 root 的话,那么对于这个分享的目录来说,他就具有 root 的权限!这个项目『极不安全』,不建议使用!

官方说明: https://docs.aws.amazon.com/efs/latest/ug/accessing-fs-nfs-permissions.html

aws EKS EFS 上安装mysql Operation notpermitted

相关文章:

  • 2021-07-19
  • 2022-03-06
  • 2022-12-23
  • 2021-09-29
  • 2021-07-04
  • 2022-12-23
  • 2021-10-06
  • 2021-05-26
猜你喜欢
  • 2021-10-08
  • 2021-06-05
  • 2022-02-07
  • 2022-12-23
  • 2021-11-27
  • 2021-12-24
  • 2022-01-11
相关资源
相似解决方案