From 3205723f372f0e934d279bbd8f8a0220a60789ce Mon Sep 17 00:00:00 2001 From: Ranjith R Date: Mon, 27 Apr 2020 10:17:50 +0530 Subject: [PATCH] chore(YAML): Add minio spec using LocalPV hostpath - Add YAML spec for Minio-Standalone using `openebs-hostpath` SC Signed-off-by: Ranjith R --- ...o-standalone-localpv-hostpath-default.yaml | 71 +++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 k8s/demo/minio/minio-standalone-localpv-hostpath-default.yaml diff --git a/k8s/demo/minio/minio-standalone-localpv-hostpath-default.yaml b/k8s/demo/minio/minio-standalone-localpv-hostpath-default.yaml new file mode 100644 index 0000000000..cf4ad7bbe3 --- /dev/null +++ b/k8s/demo/minio/minio-standalone-localpv-hostpath-default.yaml @@ -0,0 +1,71 @@ +apiVersion: extensions/v1beta1 +kind: Deployment +metadata: + # This name uniquely identifies the Deployment + name: minio-deployment +spec: + strategy: + type: Recreate + template: + metadata: + labels: + # Label is used as selector in the service. + app: minio + spec: + # Refer to the PVC created earlier + volumes: + - name: storage1 + persistentVolumeClaim: + # Name of the PVC created earlier + claimName: minio-pv-claim1 + containers: + - name: minio + # Pulls the default Minio image from Docker Hub + image: minio/minio + args: + - server + - /storage1 + env: + # Minio access key and secret key + - name: MINIO_ACCESS_KEY + value: "minio" + - name: MINIO_SECRET_KEY + value: "minio123" + - name: MINIO_PROMETHEUS_AUTH_TYPE + value: "public" + ports: + - containerPort: 9000 + # Mount the volume into the pod + volumeMounts: + - name: storage1 # must match the volume name, above + mountPath: "/storage1" +--- +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: minio-pv-claim1 + labels: + app: minio-storage-claim1 +spec: + storageClassName: openebs-hostpath + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 20Gi +--- +apiVersion: v1 +kind: Service +metadata: + name: minio-service + labels: + app: minio +spec: + ports: + - port: 9000 + nodePort: 32701 + protocol: TCP + selector: + app: minio + sessionAffinity: None + type: NodePort