apiVersion: apps/v1
kind: Deployment
metadata:
  annotations:
    enterprise.min.io/version: RELEASE.2024-03-12T08-39-44Z
    operator.min.io/authors: MinIO, Inc.
    operator.min.io/license: Enterprise
    operator.min.io/support: https://subnet.min.io
    operator.min.io/version: v5.0.13
  labels:
    app.kubernetes.io/instance: minio-operator
    app.kubernetes.io/name: operator
  name: minio-operator
  namespace: minio-operator
spec:
  replicas: 2
  selector:
    matchLabels:
      name: minio-operator
  strategy:
    type: Recreate
  template:
    metadata:
      annotations:
        enterprise.min.io/version: RELEASE.2024-03-12T08-39-44Z
        operator.min.io/authors: MinIO, Inc.
        operator.min.io/license: Enterprise
        operator.min.io/support: https://subnet.min.io
        operator.min.io/version: v5.0.13
      labels:
        app.kubernetes.io/instance: minio-operator
        app.kubernetes.io/name: operator
        name: minio-operator
    spec:
      affinity:
        podAntiAffinity:
          requiredDuringSchedulingIgnoredDuringExecution:
          - labelSelector:
              matchExpressions:
              - key: name
                operator: In
                values:
                - minio-operator
            topologyKey: kubernetes.io/hostname
      containers:
      - args:
        - controller
        env:
        - name: MINIO_CONSOLE_TLS_ENABLE
          value: "off"
        - name: OPERATOR_STS_ENABLED
          value: "on"
        image: quay.io/mineos/operator:RELEASE.2024-03-12T08-39-44Z
        imagePullPolicy: IfNotPresent
        name: minio-operator
        resources:
          requests:
            cpu: 200m
            ephemeral-storage: 500Mi
            memory: 256Mi
        securityContext:
          runAsGroup: 1000
          runAsNonRoot: true
          runAsUser: 1000
      serviceAccountName: minio-operator
