Merge pull request #3513 from leseb/mgr-uid-cephfs

ceph: mgr fix startup
This commit is contained in:
Travis Nielsen authored and GitHub committed 2019-07-24 12:39:40 -06:00
commit 35e2943ec8
1 file changed
+5
+5
View File
@@ -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,