文件

Operator Helm Charts

MinIO 為 Helm Charts 發布了 Helm Operator ChartsHelm Tenant Charts。您可以使用這些圖表透過 Helm 部署 MinIO Operator 和受管理的租戶。

以下頁面記錄了 MinIO Operator 的 values.yaml 圖表。有關 MinIO 租戶圖表的文檔,請參閱 租戶 Helm Charts

MinIO Operator Chart

operator

Operator Helm Chart 的根金鑰

env

要傳遞給 Operator 部署的環境變數陣列。傳遞一個空陣列以使用預設值啟動 Operator。

例如

env:
- name: MINIO_OPERATOR_DEPLOYMENT_NAME
  valueFrom:
    fieldRef:
      fieldPath: metadata.labels['app.kubernetes.io/name']
- name: CLUSTER_DOMAIN
  value: "cluster.domain"
- name: WATCHED_NAMESPACE
  value: ""
- name: MINIO_OPERATOR_RUNTIME
  value: "OpenShift"

有關所有支援值的列表,請參閱 Operator 環境變數

image

指定要用於部署的 Operator 容器映像。image.tag 例如,以下將映像設定為 quay.io/minio/operator 儲存庫和 v6.0.3 標籤。如果容器中尚不存在映像,則會提取該映像

image:
  repository: quay.io/minio/operator
  tag: v6.0.3
  pullPolicy: IfNotPresent

該圖表還支援基於摘要值指定映像

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

指定要在租戶 Pod 上部署的 sidecar 容器映像,用於 init 容器和 sidecar。如果想要使用與預設值不同的版本,或想要設定自訂註冊表,則只需要變更此設定。sidecarImage.tag 例如,以下將映像設定為 quay.io/minio/operator-sidecar 儲存庫和 v6.0.3 標籤。如果容器中尚不存在映像,則會提取該映像

sidecarImage:
  repository: quay.io/minio/operator-sidecar
  tag: v6.0.3
  pullPolicy: IfNotPresent

該圖表還支援基於摘要值指定映像

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

用於從私人 image.repository 提取映像的 Kubernetes 秘密陣列。目前僅支援一個陣列元素。

runtimeClassName

要用於 Operator Pod 的自訂 容器執行階段的名稱。

initContainers

在 Operator Pod 啟動之前先啟動的 initContainers 陣列。請謹慎使用,因為 initContainer 失敗會阻止 Operator Pod 啟動。傳遞一個空陣列即可正常啟動 Operator。

replicaCount

要部署的 Operator Pod 數量。較高的值可以提高在工作節點故障時的可用性。

叢集必須有足夠數量的可用工作節點來滿足請求。Operator Pod 預設會部署 pod 反親和性,防止 Kubernetes 將多個 Pod 排程到單個工作節點上。

securityContext

用於部署 Operator 資源的 Kubernetes SecurityContext

您可能需要修改這些值以符合您叢集的安全性和存取設定。

containerSecurityContext

用於部署 Operator 容器的 Kubernetes SecurityContext。您可能需要修改這些值以符合您叢集的安全性和存取設定。

volumes

Operator 可以掛載到 Pod 的 Volumes 陣列。

這些 Volumes 必須存在 Operator Pod 可以存取。

volumeMounts

與每個 Operator 容器關聯的掛載點陣列。

請依照以下方式指定陣列中的每個項目

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

name 欄位必須對應到 volumes 陣列中的一個項目。

nodeSelector

任何要應用於 Operator Pod 的 Node Selectors

Kubernetes 排程器使用這些選擇器來判斷它可以將 Operator Pod 部署到哪些工作節點上。

如果沒有工作節點符合指定的選擇器,則 Operator 部署將會失敗。

priorityClassName

要分配給 Operator Pod 的 Pod Priority

affinity

要應用於 Operator Pod 的 親和性 或反親和性設定。

這些設定決定了 Pod 在工作節點上的分佈,並且可以幫助防止或允許將 Pod 配置在相同的工作節點上。

tolerations

要與 Operator Pod 關聯的 容忍度標籤 陣列。

這些設定決定了 Pod 在工作節點上的分佈。

topologySpreadConstraints

要與 Operator Pod 關聯的 拓撲分佈約束 陣列。

這些設定決定了 Pod 在工作節點上的分佈。

resources

要與 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: MINIO_OPERATOR_DEPLOYMENT_NAME
  #      valueFrom:
  #        fieldRef:
  #          fieldPath: metadata.labels['app.kubernetes.io/name']
  #    - 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 v6.0.3 tag.
  # The container pulls the image if not already present:
  #
  # .. code-block:: yaml
  #
  #    image:
  #      repository: quay.io/minio/operator
  #      tag: v6.0.3
  #      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: v6.0.3
    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 v6.0.3 tag.
  # The container pulls the image if not already present:
  #
  # .. code-block:: yaml
  #
  #    sidecarImage:
  #      repository: quay.io/minio/operator-sidecar
  #      tag: v6.0.3
  #      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.dev.org.tw/docs/concepts/containers/runtime-class/>`__ to use for the Operator pods.
  runtimeClassName: ~
  ###
  # An array of `initContainers <https://kubernetes.dev.org.tw/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.dev.org.tw/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.dev.org.tw/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.dev.org.tw/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.dev.org.tw/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.dev.org.tw/docs/concepts/scheduling-eviction/pod-priority-preemption/>`__ to assign to Operator pods.
  priorityClassName: ""
  ###
  #
  # The `affinity <https://kubernetes.dev.org.tw/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.dev.org.tw/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.dev.org.tw/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.dev.org.tw/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