From 8cc8ed8ea787ccbd37ffb28355772c4de0426815 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torma=20Krist=C3=B3f?= Date: Tue, 31 Mar 2020 01:07:29 +0200 Subject: [PATCH] create minio config --- minio.yaml | 83 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 83 insertions(+) create mode 100644 minio.yaml diff --git a/minio.yaml b/minio.yaml new file mode 100644 index 0000000..2256cd6 --- /dev/null +++ b/minio.yaml @@ -0,0 +1,83 @@ + apiVersion: v1 +kind: Service +metadata: + name: minio-service + namespace: birbnetes +spec: + type: ClusterIP + ports: + - port: 9000 + targetPort: 9000 + protocol: TCP + selector: + app: minio +--- +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: birbnetes-nfs-minio + namespace: birbnetes +spec: + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 10Gi +--- +apiVersion: v1 +kind: ConfigMap +metadata: + name: minio + labels: + app: minio + namespace: birbnetes +data: + MINIO_ACCESS_KEY: "birbnetes-minio-access" + MINIO_SECRET_KEY: "birbnetes-supersecret" +-- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: minio + namespace: birbnetes +spec: + selector: + matchLabels: + app: minio + strategy: + type: Recreate + template: + metadata: + labels: + app: minio + spec: + volumes: + - name: data + persistentVolumeClaim: + claimName: birbnetes-nfs-minio + containers: + - name: minio + volumeMounts: + - name: data + mountPath: "/data" + image: minio/minio:RELEASE.2020-03-25T07-03-04Z + args: + - server + - /data + envFrom: + - configMapRef: + name: minio + ports: + - containerPort: 9000 + readinessProbe: + httpGet: + path: /minio/health/ready + port: 9000 + initialDelaySeconds: 120 + periodSeconds: 20 + livenessProbe: + httpGet: + path: /minio/health/live + port: 9000 + initialDelaySeconds: 120 + periodSeconds: 20