##
We are going to make the following changes to the Object Store docs as
part of a larger QC/Content pass:
### Left Navigation
We want to modify the left navigation flow to be a natural progression
from a basic setup to more advanced.
For example:
- Core Concepts
- Deployment Architecture
- Availability and Resiliency
- Erasure Coding and Object Healing
- Object Scanner
- Site Replication and Failover
- Thresholds and Limits
- Installation
- Deployment Checklist
- Deploy MinIO on Kubernetes
- Deploy MinIO on Red Hat Linux
- Deploy MinIO on Ubuntu Linux
- Deploy MinIO for Development (MacOS, Windows, Container)
- Security and Encryption (Conceptual Overview)
- Network Encryption (TLS) (Conceptual overview)
- Enable Network Encryption using Single Domain
- Enable Network Encryption using Multiple Domains
- Enable Network Encryption using certmanager (Kubernetes only)
- Data Encryption (SSE) (Conceptual overview)
- Enable SSE using AIStor Key Management Server
- Enable SSE using KES (Summary page + linkouts)
- External Identity Management (Conceptual Overview)
- Enable External Identity management using OpenID
- Enable External Identity management using AD/LDAP
- Backup and Recovery
- Create a Multi-Site Replication Configuration
- Recovery after Hardware Failure
- Recover after drive failure
- Recover after node failure
- Recover after site failure
- Monitoring and Alerts
- Metrics and Alerting (v3 reference)
- Monitoring and Alerting using Prometheus
- Monitoring and Alerting using InfluxDB
- Monitoring and Alerting using Grafana
- Metrics V2 Reference
- Publish Server and Audit Logs to External Services
- MinIO Healthcheck API
The Administration, Developer, and Reference sections will remain as-is
for now.
http://192.241.195.202:9000/staging/singleplat/mindocs/index.html
# Goals
Maintaining multiple platforms is getting to be too much, and based on
analytics the actual number of users taking advantage of it is minimal.
Furthermore, the majority of traffic is to installation pages.
Therefore we're going to try to collapse back into a single MinIO Object
Storage product, and use simple navigation and on-page selectors to
handle Baremetal vs Kubernetes.
This may also help to eventually stage us to migrate to Hugo + Markdown
---------
Co-authored-by: Daryl White <53910321+djwfyi@users.noreply.github.com>
Co-authored-by: Rushan <rushenn@minio.io>
Co-authored-by: rushenn <rushenn123@gmail.com>
11 KiB
Deploy a MinIO Tenant
minio
Table of Contents
This procedure documents deploying a MinIO Tenant using the MinIO Operator.
- align
- center
- width
- 70%
- class
- no-scaled-link
- alt
- MinIO Operator Console
Deploying Single-Node topologies requires additional configurations not covered in this documentation. You can alternatively use a simple Kubernetes YAML object to describe a Single-Node topology for local testing and evaluation as necessary. MinIO does not recommend nor support single-node deployment topologies for production environments.
This documentation assumes familiarity with all referenced Kubernetes
concepts, utilities, and procedures. While this documentation
may provide guidance for configuring or deploying
Kubernetes-related resources on a best-effort basis, it is not a
replacement for the official Kubernetes Documentation <>.
Deploy a MinIO Tenant using Kustomize
The following procedure uses kubectl -k to deploy a
MinIO Tenant using the base Kustomization template in the
MinIO Operator Github repository <operator/tree/master/examples/kustomization/base>.
You can select a different base or pre-built template from the repository <operator/tree/master/examples/kustomization/>
as your starting point, or build your own Kustomization resources using
the MinIO Custom Resource Documentation <minio-operator-crd>.
Important
If you use Kustomize to deploy a MinIO Tenant, you must use Kustomize
to manage or upgrade that deployment. Do not use
kubectl krew, a Helm Chart, or similar methods to manage or
upgrade the MinIO Tenant.
This procedure is not exhaustive of all possible configuration
options available in the Tenant CRD <minio-operator-crd>. It provides a
baseline from which you can modify and tailor the Tenant to your
requirements.
Create a YAML object for the Tenant
Use the
kubectl kustomizecommand to produce a YAML file containing all Kubernetes resources necessary to deploy thebaseTenant:kubectl kustomize https://github.com/minio/operator/examples/kustomization/base/ > tenant-base.yamlThe command creates a single YAML file with multiple objects separated by the
---line. Open the file in your preferred editor.The following steps reference each object based on it's
kindandmetadata.namefields:Configure the Tenant topology
The
kind: Tenantobject describes the MinIO Tenant.The following fields share the
spec.pools[0]prefix and control the number of servers, volumes per server, and storage class of all pods deployed in the Tenant:Field Description serversThe number of MinIO pods to deploy in the Server Pool. volumesPerServerThe number of persistent volumes to attach to each MinIO pod ( servers). The Operator generatesvolumesPerServer x serversPersistant Volume Claims for the Tenant.volumeClaimTemplate.spec.storageClassNameThe Kubernetes storage class to associate with the generated Persistent Volume Claims.
If no storage class exists matching the specified value or if the specified storage class cannot meet the requested number of PVCs or storage capacity, the Tenant may fail to start.
volumeClaimTemplate.spec.resources.requests.storageThe amount of storage to request for each generated PVC. Configure Tenant Affinity or Anti-Affinity
The MinIO Operator supports the following Kubernetes Affinity and Anti-Affinity configurations:
- Node Affinity (
spec.pools[n].nodeAffinity) - Pod Affinity (
spec.pools[n].podAffinity) - Pod Anti-Affinity (
spec.pools[n].podAntiAffinity)
MinIO recommends configuring Tenants with Pod Anti-Affinity to ensure that the Kubernetes schedule does not schedule multiple pods on the same worker node.
If you have specific worker nodes on which you want to deploy the tenant, pass those node labels or filters to the
nodeAffinityfield to constrain the scheduler to place pods on those nodes.- Node Affinity (
Configure Network Encryption
The MinIO Tenant CRD provides the following fields from which you can configure tenant TLS network encryption:
Field Description tenant.certificate.requestAutoCertEnable or disable MinIO
automatic TLS certificate generation <minio-tls>Defaults to
trueor enabled if omitted.tenant.certificate.certConfigCustomize the behavior of automatic TLS <minio-tls>, if enabled.tenant.certificate.externalCertSecretEnable TLS for multiple hostnames via Server Name Indication (SNI)
Specify one or more Kubernetes secrets of type
kubernetes.io/tlsorcert-manager.tenant.certificate.externalCACertSecretEnable validation of client TLS certificates signed by unknown, third-party, or internal Certificate Authorities (CA).
Specify one or more Kubernetes secrets of type
kubernetes.io/tlscontaining the full chain of CA certificates for a given authority.Configure MinIO Environment Variables
You can set MinIO Server environment variables using the
tenant.configurationfield.Field Description tenant.configurationSpecify a Kubernetes opaque secret whose data payload
config.envcontains each MinIO environment variable you want to set.The
config.envdata payload must be a base64-encoded string. You can create a local file, set your environment variables, and then usecat LOCALFILE | base64to create the payload.The YAML includes an object
kind: Secretwithmetadata.name: storage-configurationthat sets the root username, password, erasure parity settings, and enables Tenant Console.Modify this as needed to reflect your Tenant requirements.
Review the Namespace
The YAML object
kind: Namespacesets the default namespace for the Tenant tominio-tenant.You can change this value to create a different namespace for the Tenant. You must change all
metadata.namespacevalues in the YAML file to match the Namespace.Deploy the Tenant
Use the
kubectl apply -fcommand to deploy the Tenant.kubectl apply -f tenant-base.yamlThe command creates each of the resources specified in the YAML object at the configured namespace.
You can monitor the progress using the following command:
watch kubectl get all -n minio-tenantExpose the Tenant MinIO S3 API port
To test the MinIO Client
mcfrom your local machine, forward the MinIO port and create an alias.- Forward the Tenant's MinIO port:
kubectl port-forward svc/MINIO_TENANT_NAME-hl 9000 -n MINIO_TENANT_NAMESPACE- Create an alias for the Tenant service:
mc alias set myminio https://localhost:9000 minio minio123 --insecureYou can use
mc mbto create a bucket on the Tenant:mc mb myminio/mybucket --insecureIf you deployed your MinIO Tenant using TLS certificates minted by a trusted Certificate Authority (CA) you can omit the
--insecureflag.See
create-tenant-connect-tenantfor specific instructions.
Connect to the Tenant
The MinIO Operator creates services for the MinIO Tenant.
Use the kubectl get svc -n NAMESPACE command to review
the deployed services. For Kubernetes services which use a custom
kubectl analog, you can substitute the name of that
program.
kubectl get svc -n minio-tenant-1
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
minio LoadBalancer 10.97.114.60 <pending> 443:30979/TCP 2d3h
TENANT-NAMESPACE-console LoadBalancer 10.106.103.247 <pending> 9443:32095/TCP 2d3h
TENANT-NAMESPACE-hl ClusterIP None <none> 9000/TCP 2d3h
- The
minioservice corresponds to the MinIO Tenant service. Applications should use this service for performing operations against the MinIO Tenant. - The
*-consoleservice corresponds to theMinIO Console <console>. Administrators should use this service for accessing the MinIO Console and performing administrative operations on the MinIO Tenant.
The remaining services support Tenant operations and are not intended for consumption by users or administrators.
By default each service is visible only within the Kubernetes
cluster. Applications deployed inside the cluster can access the
services using the CLUSTER-IP.
Applications external to the Kubernetes cluster can access the
services using the EXTERNAL-IP. This value is only
populated for Kubernetes clusters configured for Ingress or a similar
network access service. Kubernetes provides multiple options for
configuring external access to services.
See the Kubernetes documentation on Publishing Services (ServiceTypes) <concepts/services-networking/service/#publishing-services-service-types>
and Ingress <concepts/services-networking/ingress/>
for more complete information on configuring external access to
services.
For specific flavors of Kubernetes, such as OpenShift or Rancher, defer to the service documentation on the preferred or available methods of exposing Services to internal or external access.
