-
Notifications
You must be signed in to change notification settings - Fork 1
/
minio.yaml
158 lines (158 loc) · 3.51 KB
/
minio.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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
apiVersion: v1
kind: Service
metadata:
name: minio
namespace: minio-store
labels:
app: minio
spec:
clusterIP: None
ports:
- port: 9000
name: minio
selector:
app: minio
---
apiVersion: v1
kind: Service
metadata:
name: minio-svc
namespace: minio-store
spec:
type: NodePort
selector:
app: minio
ports:
- name: minio-console
protocol: TCP
port: 9090
targetPort: 9090
- name: minio-api
protocol: TCP
port: 9000
targetPort: 9000
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: minio
namespace: minio-store
labels:
app: minio
spec:
serviceName: minio
replicas: 2
#replicas: 2
selector:
matchLabels:
app: minio
template:
metadata:
labels:
app: minio
spec:
containers:
- name: minio
image: minio/minio:latest
args:
- server # who are our servers in cluster (below)
- http://minio-0.minio.minio-store.svc.cluster.local/data
- http://minio-1.minio.minio-store.svc.cluster.local/data
#- http://minio-2.minio.minio-store.svc.cluster.local/data
- --console-address # which port for console
- :9090
env:
- name: MINIO_ROOT_USER
value: "minioadmin"
- name: MINIO_ROOT_PASSWORD
value: "admin@2675"
- name: MINIO_IDENTITY_OPENID_CONFIG_URL
value: "https://auth.34.16.137.32.nip.io/.well-known/openid-configuration"
- name: MINIO_IDENTITY_OPENID_CLIENT_ID
value: "oidc-auth-client"
- name: MINIO_IDENTITY_OPENID_CLIENT_SECRET
value: "secret"
- name: MINIO_IDENTITY_OPENID_REDIRECT_URI
value: "https://minio-console.34.16.137.32.nip.io/oauth_callback"
- name: MINIO_IDENTITY_OPENID_SCOPES
value: "groups,openid,email,profile"
- name: MINIO_IDENTITY_OPENID_CLAIM_NAME
value: "groups"
- name: MINIO_IDENTITY_OPENID_CLAIM_PREFIX
value: ""
- name: MINIO_IDENTITY_TLS_ENABLE
value: "on"
- name: MINIO_IDENTITY_TLS_SKIP_VERIFY
value: "on"
ports:
- containerPort: 9000
hostPort: 9000
- containerPort: 9090
hostPort: 9090
volumeMounts:
- mountPath: /data
name: data
- mountPath: /root/.minio/certs/CAs/ca.crt
name: dex-cert
subPath: ca.crt
volumes:
- name: dex-cert
configMap:
defaultMode: 420
name: dex-cert
volumeClaimTemplates:
- metadata:
name: data
spec:
accessModes:
- ReadWriteOnce
storageClassName: local-path
resources:
requests:
storage: 5Gi
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: minio-console
namespace: minio-store
labels:
app: minio
spec:
tls:
- secretName: minio
hosts:
- minio-console.34.16.137.32.nip.io
ingressClassName: nginx
rules:
- host: minio-console.34.16.137.32.nip.io
http:
paths:
- backend:
service:
name: minio-svc
port:
number: 9090
path: /
pathType: Prefix
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: minio-api
namespace: minio-store
labels:
app: minio
spec:
ingressClassName: nginx
rules:
- host: minio-api.1.2.3.4.nip.io
http:
paths:
- backend:
service:
name: minio-svc
port:
number: 9000
path: /
pathType: Prefix