文档基于2025-10-10日社区最终版构建     
切换到英文版    进入演示系统    进入交流社区

MinIO Documentation

Operator Helm Charts

MinIO 发布Helm Charts对于Helm Operator ChartsHelm Tenant Charts您可以使用这些图表通过 Helm 部署 MinIO Operator 和管理租户。

以下页面记录了values.yamlMinIO Operator 的 Chart。 有关 MinIO Tenant 的 Chart 文档,请参阅Tenant Helm Charts

MinIO Operator Chart

操作员

Operator Helm Chart 根密钥

env

要传递给 Operator 部署的环境变量数组。 传递空数组将使用默认配置启动 Operator。

例如:

env:
- name: CLUSTER_DOMAIN
  value: "cluster.domain"
- name: WATCHED_NAMESPACE
  value: ""
- name: MINIO_OPERATOR_RUNTIME
  value: "OpenShift"

Operator环境变量有关所有支持值的列表。

图像

指定用于部署的 Operator 容器镜像。image.tag例如,以下设置图像为quay.io/minio/operatorrepo 和 v7.0.0 标签。 如果镜像尚未存在,容器会自动拉取镜像:

image:
  repository: quay.io/minio/operator
  tag: v7.0.0
  pullPolicy: IfNotPresent

该图表还支持基于摘要值指定镜像:

image:
  repository: quay.io/minio/operator@sha256
  digest: 28c80b379c75242c6fe793dfbf212f43c602140a0de5ebe3d9c2a3a7b9f9f983
  pullPolicy: IfNotPresent
sidecar镜像

指定要在租户 Pod 上部署的边车容器镜像,用于初始化容器和边车容器。 仅在需要使用与默认版本不同的版本,或想要设置自定义注册表时才需要更改此设置。sidecarImage.tag例如,以下设置图像为quay.io/minio/operator-sidecarrepo 和 v7.0.0 标签。 如果镜像尚未存在,容器会自动拉取镜像:

sidecarImage:
  repository: quay.io/minio/operator-sidecar
  tag: v7.0.0
  pullPolicy: IfNotPresent

该图表还支持基于摘要值指定镜像:

sidecarImage:
  repository: quay.io/minio/operator-sidecar@sha256
  digest: a11947a230b80fb1b0bffa97173147a505d4f1207958f722e348d11ab9e972c1
  pullPolicy: IfNotPresent
imagePullSecrets

用于从私有仓库拉取镜像的 Kubernetes secrets 数组image.repository目前仅支持一个数组元素。

runtimeClassName

自定义的名称容器运行时供 Operator Pod 使用。

initContainers

一个数组initContainers在 Operator Pod 启动之前开始运行。 请谨慎操作。initContainer故障会阻止 Operator Pod 启动。 传递空数组以正常启动 Operator。

replicaCount

要部署的 Operator Pod 数量。 较高的数值可在工作节点发生故障时提高可用性。

集群必须有足够数量的可用工作节点来满足请求。 Operator Pod 默认部署时带有 Pod 反亲和性,防止 Kubernetes 将多个 Pod 调度到单个工作节点上。

securityContext

KubernetesSecurityContext用于部署 Operator 资源。

您可能需要修改这些值以满足集群的安全性和访问设置。

containerSecurityContext

KubernetesSecurityContext用于部署 Operator 容器的配置。 您可能需要修改这些值以满足集群的安全性和访问设置。

volumes

一个数组Volumes操作员可以挂载到 Pod 的

卷必须存在可供 Operator Pod 访问。

volumeMounts

与每个 Operator 容器关联的卷挂载点数组。

将数组中的每个项目指定如下:

volumeMounts:
- name: volumename
  mountPath: /path/to/mount

Thename字段必须对应于一个条目在volumes数组。

nodeSelector

任何节点选择器应用于 Operator Pod。

Kubernetes调度器使用这些选择器来确定可以将Operator Pod部署到哪些工作节点上。

如果没有工作节点匹配指定的选择器,Operator 部署将会失败。

priorityClassName

ThePod 优先级分配给 Operator Pods。

亲和性

The亲和性应用于 Operator Pod 的反亲和性设置。

这些设置决定了 Pod 在工作节点间的分布方式,可帮助防止或允许将 Pod 调度到同一工作节点上。

容忍度

一个数组容忍标签与 Operator Pod 关联。

这些设置决定了 Pod 在工作节点间的分布方式。

topologySpreadConstraints

一个数组Topology Spread Constraints与 Operator Pod 关联。

这些设置决定了 Pod 在工作节点间的分布方式。

资源

TheRequests 或 Limits用于与 Operator Pod 关联的资源。

这些设置可以控制每个 Pod 请求的最小和最大资源。 如果没有工作节点能够满足指定的请求,Operator 可能无法部署。

###
# Root key for Operator Helm Chart
operator:
  ###
  # An array of environment variables to pass to the Operator deployment.
  # Pass an empty array to start Operator with defaults.
  #
  # For example:
  #
  # .. code-block:: yaml
  #
  #    env:
  #    - name: CLUSTER_DOMAIN
  #      value: "cluster.domain"
  #    - name: WATCHED_NAMESPACE
  #      value: ""
  #    - name: MINIO_OPERATOR_RUNTIME
  #      value: "OpenShift"
  #
  # See `Operator environment variables <https://github.com/minio/operator/blob/master/docs/env-variables.md>`__ for a list of all supported values.
  env:
    - name: OPERATOR_STS_ENABLED
      value: "on"
  # An array of additional annotations to be applied to the operator service account
  serviceAccountAnnotations: []
  # additional labels to be applied to operator resources
  additionalLabels: {}
  ###
  # Specify the Operator container image to use for the deployment.
  # ``image.tag``
  # For example, the following sets the image to the ``quay.io/minio/operator`` repo and the v7.0.0 tag.
  # The container pulls the image if not already present:
  #
  # .. code-block:: yaml
  #
  #    image:
  #      repository: quay.io/minio/operator
  #      tag: v7.0.0
  #      pullPolicy: IfNotPresent
  #
  # The chart also supports specifying an image based on digest value:
  #
  # .. code-block:: yaml
  #
  #    image:
  #      repository: quay.io/minio/operator@sha256
  #      digest: 28c80b379c75242c6fe793dfbf212f43c602140a0de5ebe3d9c2a3a7b9f9f983
  #      pullPolicy: IfNotPresent
  #
  image:
    repository: quay.io/minio/operator
    tag: v7.0.0
    pullPolicy: IfNotPresent
  ###
  # Specify the sidecar container image to deploy on tenant pods for init container and sidecar.
  # Only need to change this if want to use a different version that the default, or want to set a custom registry.
  # ``sidecarImage.tag``
  # For example, the following sets the image to the ``quay.io/minio/operator-sidecar`` repo and the v7.0.0 tag.
  # The container pulls the image if not already present:
  #
  # .. code-block:: yaml
  #
  #    sidecarImage:
  #      repository: quay.io/minio/operator-sidecar
  #      tag: v7.0.0
  #      pullPolicy: IfNotPresent
  #
  # The chart also supports specifying an image based on digest value:
  #
  # .. code-block:: yaml
  #
  #    sidecarImage:
  #      repository: quay.io/minio/operator-sidecar@sha256
  #      digest: a11947a230b80fb1b0bffa97173147a505d4f1207958f722e348d11ab9e972c1
  #      pullPolicy: IfNotPresent
  #
  sidecarImage: {}
  ###
  #
  # An array of Kubernetes secrets to use for pulling images from a private ``image.repository``.
  # Only one array element is supported at this time.
  imagePullSecrets: [ ]
  ###
  #
  # The name of a custom `Container Runtime <https://kubernetes.io/docs/concepts/containers/runtime-class/>`__ to use for the Operator pods.
  runtimeClassName: ~
  ###
  # An array of `initContainers <https://kubernetes.io/docs/concepts/workloads/pods/init-containers/>`__ to start up before the Operator pods.
  # Exercise care as ``initContainer`` failures prevent Operator pods from starting.
  # Pass an empty array to start the Operator normally.
  initContainers: [ ]
  ###
  # The number of Operator pods to deploy.
  # Higher values increase availability in the event of worker node failures.
  #
  # The cluster must have sufficient number of available worker nodes to fulfill the request.
  # Operator pods deploy with pod anti-affinity by default, preventing Kubernetes from scheduling multiple pods onto a single Worker node.
  replicaCount: 2
  ###
  # The Kubernetes `SecurityContext <https://kubernetes.io/docs/tasks/configure-pod-container/security-context/>`__ to use for deploying Operator resources.
  #
  # You may need to modify these values to meet your cluster's security and access settings.
  securityContext:
    runAsUser: 1000
    runAsGroup: 1000
    runAsNonRoot: true
    fsGroup: 1000
  ###
  # The Kubernetes `SecurityContext <https://kubernetes.io/docs/tasks/configure-pod-container/security-context/>`__ to use for deploying Operator containers.
  # You may need to modify these values to meet your cluster's security and access settings.
  containerSecurityContext:
    runAsUser: 1000
    runAsGroup: 1000
    runAsNonRoot: true
    allowPrivilegeEscalation: false
    capabilities:
      drop:
        - ALL
    seccompProfile:
      type: RuntimeDefault
  ###
  # An array of `Volumes <https://kubernetes.io/docs/concepts/storage/volumes/>`__ which the Operator can mount to pods.
  #
  # The volumes must exist *and* be accessible to the Operator pods.
  volumes: [ ]
  ###
  # An array of volume mount points associated to each Operator container.
  #
  # Specify each item in the array as follows:
  #
  # .. code-block:: yaml
  #
  #    volumeMounts:
  #    - name: volumename
  #      mountPath: /path/to/mount
  #
  # The ``name`` field must correspond to an entry in the ``volumes`` array.
  volumeMounts: [ ]
  ###
  # Any `Node Selectors <https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/>`__ to apply to Operator pods.
  #
  # The Kubernetes scheduler uses these selectors to determine which worker nodes onto which it can deploy Operator pods.
  #
  # If no worker nodes match the specified selectors, the Operator deployment will fail.
  nodeSelector: { }
  ###
  #
  # The `Pod Priority <https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/>`__ to assign to Operator pods.
  priorityClassName: ""
  ###
  #
  # The `affinity <https://kubernetes.io/docs/tasks/configure-pod-container/assign-pods-nodes-using-node-affinity/>`__ or anti-affinity settings to apply to Operator pods.
  #
  # These settings determine the distribution of pods across worker nodes and can help prevent or allow colocating pods onto the same worker nodes.
  affinity:
    podAntiAffinity:
      requiredDuringSchedulingIgnoredDuringExecution:
        - labelSelector:
            matchExpressions:
              - key: name
                operator: In
                values:
                  - minio-operator
          topologyKey: kubernetes.io/hostname
  ###
  #
  # An array of `Toleration labels <https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/>`__ to associate to Operator pods.
  #
  # These settings determine the distribution of pods across worker nodes.
  tolerations: [ ]
  ###
  #
  # An array of `Topology Spread Constraints <https://kubernetes.io/docs/concepts/scheduling-eviction/topology-spread-constraints/>`__ to associate to Operator pods.
  #
  # These settings determine the distribution of pods across worker nodes.
  topologySpreadConstraints: [ ]
  ###
  #
  # The `Requests or Limits <https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/>`__ for resources to associate to Operator pods.
  #
  # These settings can control the minimum and maximum resources requested for each pod.
  # If no worker nodes can meet the specified requests, the Operator may fail to deploy.
  resources:
    requests:
      cpu: 200m
      memory: 256Mi
      ephemeral-storage: 500Mi