-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtest-minio.yaml
More file actions
103 lines (103 loc) · 1.99 KB
/
test-minio.yaml
File metadata and controls
103 lines (103 loc) · 1.99 KB
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
103
apiVersion: v1
kind: Secret
metadata:
namespace: prow
name: s3-credentials
stringData:
service-account.json: |
{
"region": "minio",
"access_key": "minioadmin",
"endpoint": "minio.prow.svc.cluster.local",
"insecure": true,
"s3_force_path_style": true,
"secret_key": "minioadmin"
}
---
apiVersion: v1
kind: Secret
metadata:
namespace: test-pods
name: s3-credentials
stringData:
service-account.json: |
{
"region": "minio",
"access_key": "minioadmin",
"endpoint": "minio.prow.svc.cluster.local",
"insecure": true,
"s3_force_path_style": true,
"secret_key": "minioadmin"
}
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: minio
namespace: prow
spec:
selector:
matchLabels:
app: minio
strategy:
type: Recreate
template:
metadata:
labels:
app: minio
spec:
containers:
- name: minio
image: minio/minio:latest
args:
# - gateway
# - azure
- server
- /data
- --console-address=:9001
env:
- name: MINIO_ROOT_USER
value: "minioadmin"
- name: MINIO_ROOT_PASSWORD
value: "minioadmin"
- name: MINIO_REGION_NAME
value: minio
ports:
- containerPort: 9000
readinessProbe:
httpGet:
path: /minio/health/ready
port: 9000
periodSeconds: 20
livenessProbe:
httpGet:
path: /minio/health/live
port: 9000
---
apiVersion: v1
kind: Service
metadata:
name: minio
namespace: prow
spec:
type: ClusterIP
ports:
- port: 80
targetPort: 9000
protocol: TCP
selector:
app: minio
---
apiVersion: v1
kind: Service
metadata:
name: minio-console
namespace: prow
spec:
type: NodePort
ports:
- port: 8003
targetPort: 9001
protocol: TCP
selector:
app: minio