From 38850c28a1cbbf4e107b7b710ba025478f9053a5 Mon Sep 17 00:00:00 2001 From: Tomislav Plavcic Date: Thu, 12 Sep 2024 12:07:50 +0200 Subject: [PATCH] EVEREST-1461 - Change test MinIO from Pod to Deployment (#659) --- .github/minio.conf.yaml | 75 +++++++++++++++++++++++------------------ 1 file changed, 42 insertions(+), 33 deletions(-) diff --git a/.github/minio.conf.yaml b/.github/minio.conf.yaml index 83515ca06..a9884eeb5 100644 --- a/.github/minio.conf.yaml +++ b/.github/minio.conf.yaml @@ -17,45 +17,54 @@ spec: requests: storage: 5Gi --- -apiVersion: v1 -kind: Pod +apiVersion: apps/v1 +kind: Deployment metadata: labels: app: minio name: minio namespace: minio spec: - containers: - - name: minio - image: quay.io/minio/minio:latest - command: - - /bin/bash - - -c - args: - - minio server /data --console-address :9090 - volumeMounts: - - mountPath: /data - name: minio-data-vol - - mountPath: /root/.minio/certs - name: minio-cert - initContainers: - - name: init-minio - image: busybox - command: - - /bin/sh - - -c - args: - - mkdir -p /data/bucket-1 /data/bucket-2 /data/bucket-3 /data/bucket-4 - volumeMounts: - - mountPath: /data - name: minio-data-vol - volumes: - - name: minio-data-vol - persistentVolumeClaim: - claimName: minio-data - - name: minio-cert - secret: - secretName: minio-cert + replicas: 1 + selector: + matchLabels: + app: minio + template: + metadata: + labels: + app: minio + spec: + containers: + - name: minio + image: quay.io/minio/minio:latest + command: + - /bin/bash + - -c + args: + - minio server /data --console-address :9090 + volumeMounts: + - mountPath: /data + name: minio-data-vol + - mountPath: /root/.minio/certs + name: minio-cert + initContainers: + - name: init-minio + image: busybox + command: + - /bin/sh + - -c + args: + - mkdir -p /data/bucket-1 /data/bucket-2 /data/bucket-3 /data/bucket-4 + volumeMounts: + - mountPath: /data + name: minio-data-vol + volumes: + - name: minio-data-vol + persistentVolumeClaim: + claimName: minio-data + - name: minio-cert + secret: + secretName: minio-cert --- apiVersion: v1 kind: Service