| apiVersion: apps/v1 |
| kind: Deployment |
| metadata: |
| name: minio |
| spec: |
| selector: |
| matchLabels: |
| app: minio |
| strategy: |
| type: Recreate |
| template: |
| metadata: |
| labels: |
| app: minio |
| spec: |
| volumes: |
| - name: data |
| persistentVolumeClaim: |
| claimName: minio-pv-claim |
| containers: |
| - name: minio |
| volumeMounts: |
| - name: data |
| mountPath: "/data" |
| image: minio/minio |
| args: |
| - server |
| - /data |
| env: |
| - name: MINIO_ACCESS_KEY |
| value: minio |
| - name: MINIO_SECRET_KEY |
| value: minio123 |
| ports: |
| - containerPort: 9000 |
| readinessProbe: |
| httpGet: |
| path: /minio/health/ready |
| port: 9000 |
| initialDelaySeconds: 10 |
| periodSeconds: 10 |
| livenessProbe: |
| httpGet: |
| path: /minio/health/live |
| port: 9000 |
| initialDelaySeconds: 120 |
| periodSeconds: 20 |
| --- |
| apiVersion: v1 |
| kind: PersistentVolumeClaim |
| metadata: |
| name: minio-pv-claim |
| spec: |
| accessModes: |
| - ReadWriteOnce |
| resources: |
| requests: |
| storage: 10Gi |
| --- |
| apiVersion: v1 |
| kind: Service |
| metadata: |
| name: minio |
| spec: |
| type: LoadBalancer |
| ports: |
| - port: 9000 |
| targetPort: 9000 |
| protocol: TCP |
| selector: |
| app: minio |