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

Minio operator allows to run single node single server setup #2389

Closed
L1ghtman2k opened this issue Jan 31, 2025 · 1 comment
Closed

Minio operator allows to run single node single server setup #2389

L1ghtman2k opened this issue Jan 31, 2025 · 1 comment

Comments

@L1ghtman2k
Copy link

L1ghtman2k commented Jan 31, 2025

Expected Behavior

Based on the #457, and some other comments like #1025 (comment), I expect the operator not to support single server single drive configuration

Current Behavior

The operator allows a single server, with single volume to be created
I am not sure if this is intended or supported. I also notice that certain features like bucket versioning advertised to only work for standalone minio also work on this minio. I can't tell if this minio considers itself standalone or distributed.

Possible Solution

I don't know.

Steps to Reproduce (for bugs)

  1. Create following config(dummy creds):
apiVersion: v1
data:
  config.env: ZXhwb3J0IE1JTklPX1JPT1RfVVNFUj1taW5pbwpleHBvcnQgTUlOSU9fUk9PVF9QQVNTV09SRD0ib3pqRTlDTmpTQlVVNjY4WHlsWUkzTFJtSCIK
immutable: false
kind: Secret
metadata:
  name: minio-creds
  namespace: tes
type: Opaque
  1. Create tenant with the following spec:
  spec:
    buckets:
    - name: test
    configuration:
      name: minio-creds
    features:
      bucketDNS: false
      enableSFTP: false
    image: quay.io/minio/minio:RELEASE.2024-11-07T00-52-20Z
    imagePullPolicy: IfNotPresent
    mountPath: /export
    podManagementPolicy: Parallel
    pools:
    - containerSecurityContext:
        runAsGroup: 1000
        runAsNonRoot: true
        runAsUser: 1000
      name: pool-0
      resources:
        limits:
          cpu: 4
          memory: 10Gi
        requests:
          cpu: 0
          memory: 0
      securityContext:
        fsGroup: 1000
        fsGroupChangePolicy: OnRootMismatch
        runAsGroup: 1000
        runAsNonRoot: true
        runAsUser: 1000
      servers: 1
      volumeClaimTemplate:
        metadata:
          name: data
        spec:
          accessModes:
          - ReadWriteOnce
          resources:
            requests:
              storage: 10Gi
      volumesPerServer: 1
    prometheusOperator: false
    requestAutoCert: true
    subPath: /data

Regression

(Possible)
@ramondeklein
Copy link
Contributor

Single Node Single Drive is not suitable for production. It can run SNSD for simple development purposes and not supported (for production). If you insist on using SNSD in Kubernetes, then just deploy a single MinIO pod that uses a fixed PVC.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants