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: console
  namespace: minio-operator
spec:
  replicas: 1
  selector:
    matchLabels:
      app: console
  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: console
        app.kubernetes.io/instance: minio-operator-console
        app.kubernetes.io/name: operator
    spec:
      containers:
      - args:
        - ui
        - --certs-dir=/tmp/certs
        image: quay.io/mineos/operator:RELEASE.2024-03-12T08-39-44Z
        imagePullPolicy: IfNotPresent
        name: console
        ports:
        - containerPort: 9090
          name: http
        - containerPort: 9443
          name: https
        securityContext:
          runAsGroup: 1000
          runAsNonRoot: true
          runAsUser: 1000
        volumeMounts:
        - mountPath: /tmp/certs
          name: tls-certificates
        - mountPath: /tmp/certs/CAs
          name: tmp
      serviceAccountName: console-sa
      volumes:
      - name: tls-certificates
        projected:
          sources:
          - secret:
              items:
              - key: public.crt
                path: public.crt
              - key: public.crt
                path: CAs/public.crt
              - key: private.key
                path: private.key
              - key: tls.crt
                path: tls.crt
              - key: tls.crt
                path: CAs/tls.crt
              - key: tls.key
                path: tls.key
              name: console-tls
              optional: true
      - emptyDir: {}
        name: tmp
