【问题标题】:Minio Tenant is just stuck at "Waiting for Pods to be Ready" but the pod's status is RunningMinio Tenant 只是停留在“等待 Pod 准备就绪”,但 pod 的状态是 Running
【发布时间】:2021-04-28 16:57:32
【问题描述】:

这是我用于租户的配置文件

apiVersion: minio.min.io/v2
kind: Tenant
metadata:
  name: minio
  labels:
    app: minio
  annotations:
    prometheus.io/path: /minio/prometheus/metrics
    prometheus.io/port: "9000"
    prometheus.io/scrape: "true"
spec:
  image: minio/minio:RELEASE.2021-04-27T23-46-03Z.release.0033eb96
  imagePullPolicy: IfNotPresent
  credsSecret:
    name: minio-creds-secret
  pools:
    - servers: 1
      volumesPerServer: 4
      volumeClaimTemplate:
        metadata:
          name: data
        spec:
          accessModes:
            - ReadWriteMany
          resources:
            requests:
              storage: 10Gi
      securityContext:
        runAsUser: 1000
        runAsGroup: 1000
        runAsNonRoot: true
        fsGroup: 1000
  mountPath: /export
  requestAutoCert: false
  s3:
    bucketDNS: false
  certConfig:
    commonName: ""
    organizationName: []
    dnsNames: []
  podManagementPolicy: Parallel
  serviceMetadata:
    minioServiceLabels:
      label: minio-svc
    minioServiceAnnotations:
      v2.min.io: minio-svc
    consoleServiceLabels:
      label: console-svc
    consoleServiceAnnotations:
      v2.min.io: console-svc
  console:
    image: minio/console:v0.6.8
    replicas: 2
    consoleSecret:
      name: console-secret
    securityContext:
      runAsUser: 1000
      runAsGroup: 2000
      runAsNonRoot: true
      fsGroup: 2000

当我应用配置文件时,租户已创建,但它一直等待 pod 准备就绪,同时,pod 正在运行并准备就绪。 p>

在 k8s Dashboard 中,当我检查 pod 时收到此警告。

0/1 nodes are available: 1 pod has unbound immediate PersistentVolumeClaims.

【问题讨论】:

  • 请分享 kubectl get pods 的结果,这些结果是由 minio pod 过滤的,kubectl describe pod 是所有 minio pod 的结果
  • minio 容器处于错误状态。您需要检查日志

标签: kubernetes kubectl minio


【解决方案1】:

你必须在 yaml 中定义存储类来绑定 pv

【讨论】:

  • 嗨,阿夫萨。你知道用户使用的是什么存储类吗?因为我认为错误是如此广泛,可能值得向用户询问有关 SC 以及 PV 和 PVC yamls 的信息。您的答案可能不正确。
【解决方案2】:

根据Create a MinIO TenantDeploy a MinIO Tenant,如果我理解正确,您必须自己创建PV:Local Persistent Volumes

MinIO 自动创建持久卷声明 (PVC) 作为 租户创建。 确保集群至少有一个 Persistent Volume 对于每个 PVC MinIO 请求

您可以通过乘以minio的数量来估算PVC的数量 租户中的服务器 pod,按每个节点的驱动器数量计算。为了 例如,每个节点有 4 个驱动器的 4 节点租户需要 16 个 PVC 和 因此 16 PV。

MinIO 强烈建议使用以下 CSI 驱动程序来创建 本地 PV 以确保最佳对象存储性能:

  • 本地持久卷
  • OpenEBS 本地 PV

你这样做了吗?你能描述一下你的pv和pvc吗?欢迎指正

【讨论】:

    猜你喜欢
    • 2020-12-06
    • 1970-01-01
    • 2020-06-27
    • 1970-01-01
    • 1970-01-01
    • 2018-11-30
    • 1970-01-01
    • 2020-01-25
    • 2011-12-02
    相关资源
    最近更新 更多