mirror of
https://github.com/minio/docs.git
synced 2025-08-06 14:42:56 +03:00
New kubectl minio flags (#1171)
New option `--volumes-per-server` for `kubectl minio tenant create` and `kubectl minio tenant expand`. Staged http://192.241.195.202:9000/staging/DOCS-1129-kubectl/k8s/reference/kubectl-minio-plugin/kubectl-minio-tenant-create.html#kubectl.minio.tenant.create.-volumes http://192.241.195.202:9000/staging/DOCS-1129-kubectl/k8s/reference/kubectl-minio-plugin/kubectl-minio-tenant-expand.html#kubectl.minio.tenant.expand.-volumes Partly addresses https://github.com/minio/docs/issues/1129
This commit is contained in:
@@ -88,7 +88,11 @@ Syntax
|
|||||||
[--storage-class] \
|
[--storage-class] \
|
||||||
--capacity \
|
--capacity \
|
||||||
--servers \
|
--servers \
|
||||||
--volumes \
|
--volumes | --volumes-per-server \
|
||||||
|
|
||||||
|
.. include:: /includes/common-minio-mc.rst
|
||||||
|
:start-after: start-minio-syntax
|
||||||
|
:end-before: end-minio-syntax
|
||||||
|
|
||||||
|
|
||||||
Flags
|
Flags
|
||||||
@@ -139,19 +143,33 @@ The command supports the following flags:
|
|||||||
.. mc-cmd:: --volumes
|
.. mc-cmd:: --volumes
|
||||||
:required:
|
:required:
|
||||||
|
|
||||||
Total number of volumes to use in the MinIO tenant.
|
Mutually exclusive with :mc-cmd:`~kubectl minio tenant create --volumes-per-server`.
|
||||||
|
Use either :mc-cmd:`~kubectl minio tenant create --volumes` or :mc-cmd:`~kubectl minio tenant create --volumes-per-server`.
|
||||||
|
|
||||||
|
The total number of volumes in the new MinIO Tenant Pool.
|
||||||
:mc-cmd:`kubectl minio tenant create` generates one :kube-docs:`Persistent Volume Claim (PVC) <concepts/storage/persistent-volumes/#persistentvolumeclaims>` for each volume.
|
:mc-cmd:`kubectl minio tenant create` generates one :kube-docs:`Persistent Volume Claim (PVC) <concepts/storage/persistent-volumes/#persistentvolumeclaims>` for each volume.
|
||||||
|
|
||||||
The number of volumes affects both the requested storage of each ``PVC`` *and* the number of ``PVC`` to associate to each MinIO Pod in the cluster:
|
The number of volumes affects both the requested storage of each ``PVC`` *and* the number of ``PVCs`` to associate to each MinIO Pod in the cluster:
|
||||||
|
|
||||||
- The command :mc:`kubectl minio` divides the :mc-cmd:`~kubectl minio tenant create --capacity` by the number of volumes to determine the amount of ``resources.requests.storage`` to set for each ``PVC``.
|
- The command :mc:`kubectl minio` divides the :mc-cmd:`~kubectl minio tenant create --capacity` by the number of volumes to determine the amount of ``resources.requests.storage`` to set for each ``PVC``.
|
||||||
|
|
||||||
- :mc:`kubectl minio` determines the number of ``PVC`` to associate to each ``minio`` server by dividing :mc-cmd:`~kubectl minio tenant create --volumes` by :mc-cmd:`~kubectl minio tenant create --servers`.
|
- :mc:`kubectl minio` determines the number of ``PVCs`` to associate to each ``minio`` server by dividing :mc-cmd:`~kubectl minio tenant create --volumes` by :mc-cmd:`~kubectl minio tenant create --servers`.
|
||||||
|
|
||||||
The command generates each ``PVC`` with Pod-specific selectors, such that each Pod only uses ``PV`` that are locally-attached to the node running that Pod.
|
The command generates each ``PVC`` with Pod-specific selectors, such that each Pod only uses ``PVs`` that are locally-attached to the node running that Pod.
|
||||||
|
|
||||||
If the specified number of volumes exceeds the number of unbound ``PV`` available on the cluster, :mc:`kubectl minio tenant create` hangs and waits until the required ``PV`` exist.
|
If the specified number of volumes exceeds the number of unbound ``PVs`` available on the cluster, :mc:`kubectl minio tenant create` hangs and waits until the required ``PVs`` exist.
|
||||||
|
|
||||||
|
.. mc-cmd:: --volumes-per-server
|
||||||
|
:required:
|
||||||
|
|
||||||
|
Mutually exclusive with :mc-cmd:`~kubectl minio tenant create --volumes`.
|
||||||
|
Use either :mc-cmd:`~kubectl minio tenant create --volumes-per-server` or :mc-cmd:`~kubectl minio tenant create --volumes`.
|
||||||
|
|
||||||
|
Number of volumes to use for each server in the pool.
|
||||||
|
|
||||||
|
Similar to :mc-cmd:`~kubectl minio tenant create --volumes`, but instead of specifying the total number of volumes for all MinIO servers, associate ``--volumes-per-server`` volumes to each server.
|
||||||
|
|
||||||
|
If the total number of volumes (:mc-cmd:`~kubectl minio tenant create --volumes-per-server` multiplied by :mc-cmd:`~kubectl minio tenant create --servers`) exceeds the number of unbound ``PVs`` available on the cluster, :mc:`kubectl minio tenant create` hangs and waits until the required ``PVs`` exist.
|
||||||
|
|
||||||
.. mc-cmd:: --disable-tls
|
.. mc-cmd:: --disable-tls
|
||||||
:optional:
|
:optional:
|
||||||
|
@@ -56,13 +56,17 @@ Syntax
|
|||||||
|
|
||||||
kubectl minio tenant expand \
|
kubectl minio tenant expand \
|
||||||
TENANT_NAME \
|
TENANT_NAME \
|
||||||
--capacity \
|
|
||||||
--servers \
|
|
||||||
--volumes \
|
|
||||||
--namespace \
|
|
||||||
[--output] \
|
[--output] \
|
||||||
[--pool] \
|
[--pool] \
|
||||||
[--storage-class]
|
[--storage-class]
|
||||||
|
--capacity \
|
||||||
|
--servers \
|
||||||
|
--volumes | --volumes-per-server \
|
||||||
|
--namespace
|
||||||
|
|
||||||
|
.. include:: /includes/common-minio-mc.rst
|
||||||
|
:start-after: start-minio-syntax
|
||||||
|
:end-before: end-minio-syntax
|
||||||
|
|
||||||
Flags
|
Flags
|
||||||
-----
|
-----
|
||||||
@@ -92,18 +96,33 @@ The command supports the following flags:
|
|||||||
.. mc-cmd:: --volumes
|
.. mc-cmd:: --volumes
|
||||||
:required:
|
:required:
|
||||||
|
|
||||||
|
Mutually exclusive with :mc-cmd:`~kubectl minio tenant expand --volumes-per-server`.
|
||||||
|
Use either :mc-cmd:`~kubectl minio tenant expand --volumes` or :mc-cmd:`~kubectl minio tenant expand --volumes-per-server`.
|
||||||
|
|
||||||
The number of volumes in the new MinIO Tenant Pool.
|
The number of volumes in the new MinIO Tenant Pool.
|
||||||
:mc:`kubectl minio` generates one Persistent Volume Claim (``PVC``) for each volume.
|
:mc:`kubectl minio` generates one Persistent Volume Claim (``PVC``) for each volume.
|
||||||
|
|
||||||
The number of volumes affects both the requested storage of each ``PVC`` *and* the number of ``PVC`` to associate to each MinIO Pod in the new Pool:
|
The number of volumes affects both the requested storage of each ``PVC`` *and* the number of ``PVCs`` to associate to each MinIO Pod in the new Pool:
|
||||||
|
|
||||||
- The command :mc:`kubectl minio` divides the :mc-cmd:`~kubectl minio tenant expand --capacity` by the number of volumes to determine the amount of ``resources.requests.storage`` to set for each ``PVC``.
|
- The command :mc:`kubectl minio` divides the :mc-cmd:`~kubectl minio tenant expand --capacity` by the number of volumes to determine the amount of ``resources.requests.storage`` to set for each ``PVC``.
|
||||||
|
|
||||||
- :mc:`kubectl minio` determines the number of ``PVC`` to associate to each ``minio`` server by dividing :mc-cmd:`~kubectl minio tenant expand --volumes` by :mc-cmd:`~kubectl minio tenant expand --servers`.
|
- :mc:`kubectl minio` determines the number of ``PVCs`` to associate to each ``minio`` server by dividing :mc-cmd:`~kubectl minio tenant expand --volumes` by :mc-cmd:`~kubectl minio tenant expand --servers`.
|
||||||
|
|
||||||
The command generates each ``PVC`` with Pod-specific selectors, such that each Pod only uses ``PV`` that are locally-attached to the node running that Pod.
|
The command generates each ``PVC`` with Pod-specific selectors, such that each Pod only uses ``PVs`` that are locally-attached to the node running that Pod.
|
||||||
|
|
||||||
If the specified number of volumes exceeds the number of unbound ``PV`` available in the cluster, :mc:`kubectl minio tenant expand` hangs and waits until the required ``PV`` exist.
|
If the specified number of volumes exceeds the number of unbound ``PVs`` available in the cluster, :mc:`kubectl minio tenant expand` hangs and waits until the required ``PVs`` exist.
|
||||||
|
|
||||||
|
.. mc-cmd:: --volumes-per-server
|
||||||
|
:required:
|
||||||
|
|
||||||
|
Mutually exclusive with :mc-cmd:`~kubectl minio tenant expand --volumes`.
|
||||||
|
Use either :mc-cmd:`~kubectl minio tenant expand --volumes-per-server` or :mc-cmd:`~kubectl minio tenant expand --volumes`.
|
||||||
|
|
||||||
|
Number of volumes to use for each server in the pool.
|
||||||
|
|
||||||
|
Similar to :mc-cmd:`~kubectl minio tenant expand --volumes`, but instead of specifying the total number of volumes for all MinIO servers, associate ``--volumes-per-server`` volumes to each server.
|
||||||
|
|
||||||
|
If the total number of volumes (:mc-cmd:`~kubectl minio tenant expand --volumes-per-server` multiplied by :mc-cmd:`~kubectl minio tenant expand --servers`) exceeds the number of unbound ``PVs`` available on the cluster, :mc:`kubectl minio tenant expand` hangs and waits until the required ``PVs`` exist.
|
||||||
|
|
||||||
.. mc-cmd:: --namespace
|
.. mc-cmd:: --namespace
|
||||||
:optional:
|
:optional:
|
||||||
|
Reference in New Issue
Block a user