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
Update MogDB Operator Clusters
Overview
Update MogDB clusters. For example:
mgo update cluster mycluster --image=xxx
mgo update cluster mycluster myothercluster --image=xxx
mgo update cluster --all --image=xxx
mgo update cluster [flags]
Options
--access-modes int Sets the access method for data volumes. 1: ReadWriteOnce, 2: ReadOnlyMany, 3: ReadWriteMany The default value is ReadWriteOnce
--all Update all MogDB clusters
--backup-storage-size string Sets the backup data volume size. Default value 128Mi
--cpu string Set the number of CPU cores to request. e.g. "100m" or "0.1"
--cpu-limit string Set the number of cores to be limited for the CPU. e.g. "100m" or "0.1"
--data-storage-size string Sets the database data volume size. Default value 128Mi
--exporter-image string The image that will be used for the MogDB exporter sidecar container. If specified, this will replace the default value
--ha-image string The image that will be used for the MogDB HA sidecar container. If specified, this will replace the default value
-h, --help Help information for update cluster
--image string The image that will be used for the MogDB server container. If specified, this will replace the default value
--init-image string The image that will be used to initialize the container for MogDB. If specified, this will replace the default value
--log-storage-size string Sets the log data volume size. Default value 128Mi
--memory string Set the amount of memory to request. e.g. 1GiB
--memory-limit string Set the amount of memory to be restricted. e.g. 1GiB
--read-port int Set the read port of the service
--sidecar-image string The image that will be used for the MogDB sidecar container. If specified, will replace the default value
--storage-class string Sets the name of the StorageClass required for the declaration. The default value is local-path
--write-port int Set the service's write port
Options Inherited From The Parent Command
--apiserver-url string The URL of the mogDB Operator apiserver that will handle requests from the mgo client. please note that the URL should not end in "/"
--debug Enable debug output for debugging
--disable-tls Disable TLS authentication for MogDB Operator
--exclude-os-trust Exclude CA certificates from the OS default trust store
--k8s-node string Specify k8s node, default local k8s node
--mgo-ca-cert string Connection to MogDB Operator apiserver CA certificate file path.
--mgo-client-cert string Path to the client certificate file used to authenticate to the MogDB Operator apiserver
--mgo-client-key string Path to the client key file used to authenticate to the MogDB Operator apiserver
-n, --namespace string Namespace for mgo requests
Helpful Links
- mgo update - Update MogDB Operator resources