Skip to content

Deploy MinIO Operator with Helm

Cesar Celis Hernandez edited this page Sep 14, 2022 · 14 revisions

Objective:

To deploy MinIO Operator with Helm

Relevant links:

Steps:

  1. Delete previous cluster if any:
kind delete cluster
  1. Create cluster with Kind:
kind create cluster --config kind-config.yaml

Where the kind-config.yaml is:

# four node (two workers) cluster config
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
nodes:
  - role: control-plane
  - role: worker
  - role: worker
  - role: worker
  - role: worker
  1. Deploy MinIO Operator with Helm:
helm repo add minio https://operator.min.io/
helm install \
  --namespace minio-operator \
  --create-namespace \
  minio-operator minio/operator

You should get:

$ helm repo add minio https://operator.min.io/
"minio" has been added to your repositories
Cesars-MacBook-Pro:helm cniackz$ helm install \
>   --namespace minio-operator \
>   --create-namespace \
>   minio-operator minio/operator
NAME: minio-operator
LAST DEPLOYED: Wed Sep 14 12:14:05 2022
NAMESPACE: minio-operator
STATUS: deployed
REVISION: 1
TEST SUITE: None
NOTES:
1. Get the JWT for logging in to the console:
kubectl apply -f - <<EOF
apiVersion: v1
kind: Secret
metadata:
  name: console-sa-secret
  namespace: minio-operator
  annotations:
    kubernetes.io/service-account.name: console-sa
type: kubernetes.io/service-account-token
EOF
kubectl -n minio-operator  get secret console-sa-secret -o jsonpath="{.data.token}" | base64 --decode

2. Get the Operator Console URL by running these commands:
  kubectl --namespace minio-operator port-forward svc/console 9090:9090
  echo "Visit the Operator Console at http://127.0.0.1:9090"

And MinIO Operator should be running:

Screen Shot 2022-09-14 at 12 14 48 PM
  1. Port-forward Operator so that you can access it via Web Browser:
kubectl --namespace minio-operator port-forward svc/console 9090:9090