-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathminio-deployment.yaml
63 lines (63 loc) · 1.67 KB
/
minio-deployment.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
apiVersion: apps/v1
kind: Deployment
metadata:
name: minio
labels:
app: minio
spec:
selector:
matchLabels:
app: minio
template:
metadata:
labels:
app: minio
spec:
containers:
- name: main
image: minio/minio
env:
- name: MINIO_ROOT_USER
valueFrom:
secretKeyRef:
name: minio-cred
key: minio_access_key
- name: MINIO_ROOT_PASSWORD
valueFrom:
secretKeyRef:
name: minio-cred
key: minio_secret_key
- name: MINIO_SERVER_URL
valueFrom:
configMapKeyRef:
name: minio-config
key: minio-server-url
- name: MINIO_BROWSER_REDIRECT_URL
valueFrom:
configMapKeyRef:
name: minio-config
key: minio-browser-url
ports:
- containerPort: 9000
command: [minio, server, --console-address, ":9001", /data]
lifecycle:
postStart:
exec:
command:
- "sh"
- "-c"
- >
mkdir -p /data/my-bucket-1;
mkdir -p /data/my-bucket-2
readinessProbe:
httpGet:
path: /minio/health/ready
port: 9000
initialDelaySeconds: 5
periodSeconds: 10
livenessProbe:
httpGet:
path: /minio/health/live
port: 9000
initialDelaySeconds: 5
periodSeconds: 10