-
Notifications
You must be signed in to change notification settings - Fork 0
/
minio-dev.yaml
105 lines (102 loc) · 2.02 KB
/
minio-dev.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
---
kind: Deployment
apiVersion: apps/v1
metadata:
name: minio
namespace: dev-minio
labels:
app: minio
component: minio
spec:
replicas: 1
selector:
matchLabels:
component: minio
template:
metadata:
labels:
component: minio
spec:
volumes:
- name: config
persistentVolumeClaim:
claimName: minio-config
- name: storage
persistentVolumeClaim:
claimName: minio-storage
containers:
- name: minio
env:
- name: MINIO_ROOT_USER
value: minio
- name: MINIO_ROOT_PASSWORD
value: Min10Password
ports:
- containerPort: 9000
protocol: TCP
imagePullPolicy: IfNotPresent
volumeMounts:
- name: config
mountPath: /config
- name: storage
mountPath: /storage
terminationMessagePolicy: File
image: 'minio/minio:latest'
args:
- server
- /storage
- '--config-dir=/config'
- '--console-address=:9001'
restartPolicy: Always
strategy:
type: Recreate
revisionHistoryLimit: 2
progressDeadlineSeconds: 600
---
kind: Service
apiVersion: v1
metadata:
name: minio
namespace: dev-minio
labels:
component: minio
spec:
ports:
- name: api
protocol: TCP
port: 9000
targetPort: 9000
- name: http
protocol: TCP
port: 9001
targetPort: 9001
selector:
component: minio
---
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: minio-storage
namespace: dev-minio
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 3Gi
storageClassName: thin
volumeMode: Filesystem
---
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: minio-config
namespace: dev-minio
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
storageClassName: thin
volumeMode: Filesystem