diff --git a/pkg/operator/ceph/nfs/spec.go b/pkg/operator/ceph/nfs/spec.go index bcddd1d4e..cf5d37f84 100644 --- a/pkg/operator/ceph/nfs/spec.go +++ b/pkg/operator/ceph/nfs/spec.go @@ -35,10 +35,11 @@ import ( const ( // AppName is the name of the app - AppName = "rook-ceph-nfs" - ganeshaConfigVolume = "ganesha-config" - nfsPort = 2049 - ganeshaPid = "/var/run/ganesha/ganesha.pid" + AppName = "rook-ceph-nfs" + ganeshaConfigVolume = "ganesha-config" + nfsPort = 2049 + ganeshaPid = "/var/run/ganesha/ganesha.pid" + nfsGaneshaMetricsPort = 9587 ) func (r *ReconcileCephNFS) generateCephNFSService(nfs *cephv1.CephNFS, cfg daemonConfig) *v1.Service { @@ -59,6 +60,12 @@ func (r *ReconcileCephNFS) generateCephNFSService(nfs *cephv1.CephNFS, cfg daemo TargetPort: intstr.FromInt(int(nfsPort)), Protocol: v1.ProtocolTCP, }, + { + Name: "nfs-metrics", + Port: nfsGaneshaMetricsPort, + TargetPort: intstr.FromInt(int(nfsGaneshaMetricsPort)), + Protocol: v1.ProtocolTCP, + }, }, }, }