diff --git a/pkg/operator/ceph/cluster/mgr/spec.go b/pkg/operator/ceph/cluster/mgr/spec.go index 7c04f0086..7afa81e40 100644 --- a/pkg/operator/ceph/cluster/mgr/spec.go +++ b/pkg/operator/ceph/cluster/mgr/spec.go @@ -25,6 +25,7 @@ import ( rookcephv1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1" "github.com/rook/rook/pkg/daemon/ceph/client" "github.com/rook/rook/pkg/operator/ceph/cluster/mon" + "github.com/rook/rook/pkg/operator/ceph/config" "github.com/rook/rook/pkg/operator/ceph/config/keyring" opspec "github.com/rook/rook/pkg/operator/ceph/spec" cephver "github.com/rook/rook/pkg/operator/ceph/version" @@ -240,6 +241,10 @@ func (c *Cluster) makeMgrDaemonContainer(mgrConfig *mgrConfig) v1.Container { }, Args: append( opspec.DaemonFlags(c.clusterInfo, mgrConfig.DaemonID), + // for ceph-mgr cephfs + // see https://github.com/ceph/ceph-csi/issues/486 for more details + config.NewFlag("client-mount-uid", "0"), + config.NewFlag("client-mount-gid", "0"), "--foreground", ), Image: c.cephVersion.Image,