Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conditional deployment of minio operator console pro-grammatically #1805

Merged

Conversation

shtripat
Copy link
Contributor

@shtripat shtripat commented Oct 10, 2023

Fixes: #1598

Allow conditional deployment of operator console through helm.

Steps to verify the change

  1. Set .Values.operator.console value as false in helm/operator/values.yaml
console:
  enabled: false
  image:
    repository: quay.io/minio/operator
    tag: v5.0.9
    pullPolicy: IfNotPresent
  env: [ ]
  1. Install minio operator
$ helm install --namespace minio-operator --create-namespace minio-operator ./helm/operator
  1. Deploy a MinIO tenant
$ kubectl create ns tenant-ns
$ kubectl minio tenant create tenant1 --servers 4 --volumes 4 --capacity 2Gi --namespace tenant-ns
  1. Create an alias to the MinIO tenant, create a bucket and load an object
$ kubectl get secrets/tenant1-user-1 -n tenant-ns -oyaml | yq '.data.CONSOLE_ACCESS_KEY' | base64 -d
JF9HAHTV2596PC6PGWPU
$ kubectl get secrets/tenant1-user-1 -n tenant-ns -oyaml | yq '.data.CONSOLE_SECRET_KEY' | base64 -d
j7ohF4tdcBvt3SdApxbhNbvldYMItJbVeDfrr0Gn

$ kubectl port-forward svc/minio -n tenant-ns 9443:443

$ mc alias set myminio https://localhost:9443 JF9HAHTV2596PC6PGWPU j7ohF4tdcBvt3SdApxbhNbvldYMItJbVeDfrr0Gn --insecure
$ mc mb myminio/test-bucket --insecure
$ mc cp /etc/issue myminio/test-bucket --insecure
  1. Port forward to console service ad open MinIO object browser console and verify the bucket and object
$ kubectl port-forward svc/tenant1-console -n tenant-ns 9000:9443

Screenshot from 2023-10-10 13-48-18

Signed-off-by: Shubhendu Ram Tripathi <shubhendu@minio.io>
@harshavardhana harshavardhana changed the title Conditional deploymnt of minio operator console programmatically Conditional deployment of minio operator console pro-grammatically Oct 16, 2023
@harshavardhana harshavardhana merged commit 3331e77 into minio:master Oct 16, 2023
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add chart option to disable console deployment
3 participants