Skip to content

[BUG] milvus standalone minio crash: Root user name and root password are expected to be specified via environment #10494

Description

@JashBook

Describe the bug

kbcli version 
Kubernetes: v1.30.4-vke.4
KubeBlocks: 1.1.0-beta.7
kbcli: 1.0.2
WARNING: version difference between kbcli (1.0.2) and kubeblocks (1.1.0-beta.7) 
➜  ~ helm get notes -n  kb-system kb-addon-milvus
NOTES:
This is milvus.

--------------------------------------------------------------------------------
ENTERPRISE SOFTWARE — LICENSE NOTICE

This Helm chart is part of KubeBlocks Enterprise Addons, proprietary software
owned by ApeCloud Co., Ltd.

A valid KubeBlocks Enterprise License Agreement is required to install and use
this software. Unauthorized use, copying, or distribution is prohibited.

  License terms : see the LICENSE file included with this chart
  Licensing info : support@apecloud.com
  Website        : https://www.apecloud.com
--------------------------------------------------------------------------------


Release Information:
  Commit ID: "da1f78583308694ec10792afabe94ced7f90a5c6"
  Commit Time: "2026-06-11 19:00:29 +0800"
  Release Branch: "release-1.1"
  Release Time:  "2026-07-01 14:18:03 +0800"
  Enterprise: "true"

ERROR Unable to start MinIO: Missing credential environment variable, "MINIO_SECRET_KEY"
> Environment variables "MINIO_SECRET_KEY" and "MINIO_ACCESS_KEY" are deprecated
HINT:
Root user name (access key) and root password (secret key) are expected to be specified via environment variables MINIO_ROOT_USER and MINIO_ROOT_PASSWORD respectively

To Reproduce
Steps to reproduce the behavior:

  1. create cluster
apiVersion: apps.kubeblocks.io/v1
kind: Cluster
metadata:
  name: milvus-xyyohv
  namespace: default
spec:
  clusterDef: milvus
  topology: standalone
  terminationPolicy: WipeOut
  services:
    - name: proxy
      serviceName: proxy
      componentSelector: milvus
      spec:
        type: ClusterIP
        ports:
          - name: milvus
            port: 19530
            protocol: TCP
            targetPort: milvus
  componentSpecs:
  - name: milvus
    serviceVersion: 2.6.17
    disableExporter: true
    replicas: 1
    resources:
      requests:
        cpu: 100m
        memory: 0.5Gi
      limits:
        cpu: 100m
        memory: 0.5Gi
    persistentVolumeClaimRetentionPolicy:
      whenDeleted: Delete
    volumeClaimTemplates:
    - name: data
      spec:
        storageClassName: 
        accessModes:
        - ReadWriteOnce
        resources:
          requests:
            storage: 20Gi
  - name: etcd
    serviceVersion: 3.5.15
    replicas: 1
    disableExporter: true
    resources:
      limits:
        cpu: 100m
        memory: 0.5Gi
      requests:
        cpu: 100m
        memory: 0.5Gi
    persistentVolumeClaimRetentionPolicy:
      whenDeleted: Delete
    volumeClaimTemplates:
    - name: data
      spec:
        storageClassName: 
        accessModes:
        - ReadWriteOnce
        resources:
          requests:
            storage: 20Gi
  - name: minio
    serviceVersion: 8.0.17
    replicas: 1
    disableExporter: true
    resources:
      limits:
        cpu: 100m
        memory: 0.5Gi
      requests:
        cpu: 100m
        memory: 0.5Gi
    persistentVolumeClaimRetentionPolicy:
      whenDeleted: Delete
    volumeClaimTemplates:
    - name: data
      spec:
        storageClassName: 
        accessModes:
        - ReadWriteOnce
        resources:
          requests:
            storage: 20Gi
  1. See error
kubectl get cluster milvus-xyyohv 
NAME            CLUSTER-DEFINITION   TERMINATION-POLICY   STATUS     AGE
milvus-xyyohv   milvus               WipeOut              Abnormal   4m35s
➜  ~ 
➜  ~ kubectl get pod 
NAME                    READY   STATUS             RESTARTS      AGE
milvus-xyyohv-minio-0   0/1     CrashLoopBackOff   5 (53s ago)   4m38s

logs error pod

kubectl logs milvus-xyyohv-minio-0
Defaulted container "minio" out of: minio, volume-permissions (init)
ERROR Unable to start MinIO: Missing credential environment variable, "MINIO_SECRET_KEY"
      > Environment variables "MINIO_SECRET_KEY" and "MINIO_ACCESS_KEY" are deprecated
      HINT:
        Root user name (access key) and root password (secret key) are expected to be specified via environment variables MINIO_ROOT_USER and MINIO_ROOT_PASSWORD respectively

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

Labels

kind/bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions