v2.0
- About MogDB Stack
- Quick Start
- Installation
- Tutorial
- Architecture
- References
- Client
- mgo
- mgo create
- mgo create mgorole
- mgo create mgouser
- mgo create cluster
- mgo show
- mgo show k8s
- mgo show mgorole
- mgo show mgouser
- mgo show cluster
- mgo show restore
- mgo delete
- mgo delete mgorole
- mgo delete mgouser
- mgo delete cluster
- mgo delete backup
- mgo delete k8s
- mgo scale
- mgo scaledown
- mgo switch
- mgo update
- mgo update mgorole
- mgo update mgouser
- mgo update cluster
- mgo version
- mgo addk8s
- mgo localk8s
- mgo backup
- mgo backup detail
- mgo restore
- mgo minio
- mgo minio object
- mgo minio object ls
- mgo minio object stat
- mgo minio object getf
- Server
- Client
- FAQ
- Release Note
Getting Started
Install
If you have not installed MogDB Stack, please refer to software installation.
Similary, if you do not have the HA component enabled, enable it. For details, see 开启高可用组件.
(Optional) Set the Default Namespace of mgo
Many MogDB Operator (mgo) commands require namespace (-n). You can set the default namesapce of the mgo command using the MGO_NAMESPACE
environment variable.
export MGO_NAMESPACE=mogdb-operator-system
The following command shows all MogDB clusters that are deployed in the mogdb-operator-system
namespace.
mgo show cluster --all
It is equivalent to:
mgo show cluster -n mogdb-operator-system --all
(Note: -n is prior to MGO_NAMESPACE.)