1
0
mirror of https://github.com/minio/docs.git synced 2025-04-22 19:02:57 +03:00
docs/source/includes/openshift/deploy-minio-on-openshift.rst

8.8 KiB

Deploy MinIO Operator on RedHat OpenShift

minio

Table of Contents

Overview

Red Hat® OpenShift® is an enterprise-ready Kubernetes container platform with full-stack automated operations to manage hybrid cloud, multi-cloud, and edge deployments. OpenShift includes an enterprise-grade Linux operating system, container runtime, networking, monitoring, registry, and authentication and authorization solutions.

You can deploy the MinIO Kubernetes Operator through the Red Hat® OpenShift® Container Platform 4.7+ <welcome/index.html>. You can deploy and manage MinIO Tenants through OpenShift after deploying the MinIO Operator. This procedure includes instructions for the following deployment paths:

After deploying the MinIO Operator into your OpenShift cluster, you can create and manage MinIO Tenants through the OperatorHub <operators/understanding/olm-understanding-operatorhub.html> user interface.

This documentation assumes familiarity with all referenced Kubernetes and OpenShift concepts, utilities, and procedures. While this documentation may provide guidance for configuring or deploying Kubernetes-related or OpenShift-related resources on a best-effort basis, it is not a replacement for the official Kubernetes Documentation <> and OpenShift Container Platform 4.7+ Documentation <welcome/index.html>.

Prerequisites

RedHat OpenShift 4.7+

The MinIO Kubernetes Operator is available starting with OpenShift 4.7+.

Red Hat Marketplace installation requires registration of the OpenShift cluster with the Marketplace for the necessary namespaces. See Register OpenShift cluster with Red Hat Marketplace for complete instructions.

For older versions of OpenShift, use the generic deploy-operator-kubernetes procedure.

Administrator Access

Installation of operators through the Red Hat Marketplace and the Operator Hub is restricted to OpenShift cluster administrators (cluster-admin privileges). This procedure requires logging into the Marketplace and/or OpenShift with an account that has those privileges.

OpenShift oc CLI

Download and Install <cli_reference/openshift_cli/getting-started-cli.html> the OpenShift CLI (command-line interface) oc for use in this procedure.

MinIO kubectl Plugin

The MinIO Kubernetes Plugin provides a command line interface for the MinIO Operator. This procedure uses the oc minio plugin as part of the installation.

Procedure

1) Access the MinIO Operator Installation

Select the tab that corresponds to your preferred installation method:

Red Hat Marketplace

Open the MinIO Red Hat Marketplace listing in your browser. Click Login to log in with your Red Hat Marketplace account.

After logging in, click Purchase to purchase the MinIO Operator for your account.

After completing the purchase, click Workplace from the top navigation and select My Software.

From the Red Hat Marketplace, select Workplace, then My Software

Click MinIO Hybrid Cloud Object Storage and select Install Operator to start the Operator Installation procedure in OpenShift.

Red Hat OperatorHub

Log into the OpenShift Web Console as a user with cluster-admin privileges.

From the Administrator panel, select Operators, then OperatorHub.

From the OperatorHub page, type "MinIO" into the Filter text entry. Select the MinIO Operator tile from the search list.

From the OperatorHub, search for MinIO, then select the MinIO Tile.

Select the MinIO Operator tile, then click Install to begin the installation.

2) Configure and Deploy the Operator

The Install Operator page provides a walkthrough for configuring the MinIO Operator installation.

Complete the Operator Installation Walkthrough

  • For Update channel, select any of the available options.
  • For Installation Mode, select All namespaces on the cluster
  • For Installed Namespace, select openshift-operators
  • For Approval Strategy, select the approval strategy of your choice.

See the Operator Installation Documentation <operators/admin/olm-adding-operators-to-cluster.html#olm-installing-from-operatorhub-using-web-console_olm-adding-operators-to-a-cluster> Step 5 for complete descriptions of each displayed option.

Click Install to start the installation procedure. The web console displays a widget for tracking the installation progress.

Wait for Installation to Complete.

Once installation completes, click View Operator to view the MinIO Operator page.

3) Open the MinIO Operator Interface

You can find the MinIO Operator Interface from the Operators left-hand navigation header.

  1. Go to Operators, then Installed Operators.
  2. For the Project dropdown, select openshift-operators.
  3. Select MinIO Operators from the list of installed operators. The Status column must read Success to access the Operator interface.

4) Access the Operator Console

The MinIO Operator includes the Operator Console, a browser-based management interface for managed MinIO tenants.

You can temporarily port-forward the Operator Console to your local host machine using the oc minio port-forward command:

oc minio port-forward

The command returns a JWT token and a URL you can open in your browser.

Operator Dashboard

You can create a permanent routing rule by creating a Route or Ingress <networking/understanding-networking.html#nw-ne-comparing-ingress-route_understanding-networking> to allow access from external clients, such as your local computer browser.

The following steps provides a summary of actions necessary to create a Route.

  1. From Networking, go to Routes
  2. Create a new Route in the MinIO Operator project. Select a recognizable route name, such as operator-console-route.
  3. Set the Hostname as per your organizations networking and hostname topology. Omit the hostname to allow OpenShift to generate it automatically
  4. Set the Service to console
  5. Set the Target Port to 9090

You can then access the Operator Console using the configured Route. The Operator Console still requires using the generated JWT token for access, which you can generate at any time using oc minio port-forward.

6) Next Steps

After deploying the MinIO Operator, you can create a new MinIO Tenant. To deploy a MinIO Tenant using OpenShift, see deploy-minio-tenant-redhat-openshift.

/operations/install-deploy-manage/upgrade-minio-operator