-
Notifications
You must be signed in to change notification settings - Fork 0
/
deploy.yaml
226 lines (225 loc) · 5.19 KB
/
deploy.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
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
# Copyright (c) 2017-present SIGHUP s.r.l All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
---
# Source: minio/templates/serviceaccount.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: "minio-sa"
namespace: "tracing"
---
# Source: minio/templates/console-service.yaml
apiVersion: v1
kind: Service
metadata:
name: minio-tracing-console
namespace: "tracing"
labels:
app: minio
chart: minio-5.0.7
release: minio-tracing
heritage: Helm
spec:
type: ClusterIP
ports:
- name: http
port: 9001
protocol: TCP
targetPort: 9001
selector:
app: minio
release: minio-tracing
---
# Source: minio/templates/service.yaml
apiVersion: v1
kind: Service
metadata:
name: minio-tracing
namespace: "tracing"
labels:
app: minio
chart: minio-5.0.7
release: minio-tracing
heritage: Helm
monitoring: "true"
spec:
type: ClusterIP
ports:
- name: http
port: 9000
protocol: TCP
targetPort: 9000
selector:
app: minio
release: minio-tracing
---
# Source: minio/templates/statefulset.yaml
apiVersion: v1
kind: Service
metadata:
name: minio-tracing-svc
namespace: "tracing"
labels:
app: minio
chart: minio-5.0.7
release: "minio-tracing"
heritage: "Helm"
spec:
publishNotReadyAddresses: true
clusterIP: None
ports:
- name: http
port: 9000
protocol: TCP
targetPort: 9000
selector:
app: minio
release: minio-tracing
---
# Source: minio/templates/statefulset.yaml
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: minio-tracing
namespace: "tracing"
labels:
app: minio
chart: minio-5.0.7
release: minio-tracing
heritage: Helm
spec:
updateStrategy:
type: RollingUpdate
podManagementPolicy: "Parallel"
serviceName: minio-tracing-svc
replicas: 3
selector:
matchLabels:
app: minio
release: minio-tracing
template:
metadata:
name: minio-tracing
labels:
app: minio
release: minio-tracing
spec:
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
podAffinityTerm:
labelSelector:
matchExpressions:
- key: "release"
operator: In
values:
- minio-tracing
topologyKey: "kubernetes.io/hostname"
securityContext:
runAsUser: 1000
runAsGroup: 1000
fsGroup: 1000
fsGroupChangePolicy: OnRootMismatch
serviceAccountName: minio-sa
containers:
- name: minio
image: registry.sighup.io/fury/minio
imagePullPolicy: IfNotPresent
command: [ "/bin/sh",
"-ce",
"/usr/bin/docker-entrypoint.sh minio server http://minio-tracing-{0...2}.minio-tracing-svc.tracing.svc.cluster.local/export-{0...1} -S /etc/minio/certs/ --address :9000 --console-address :9001" ]
volumeMounts:
- name: export-0
mountPath: /export-0
- name: export-1
mountPath: /export-1
ports:
- name: http
containerPort: 9000
- name: http-console
containerPort: 9001
env:
- name: MINIO_ROOT_USER
valueFrom:
secretKeyRef:
name: minio-tracing
key: ROOT_USER
- name: MINIO_ROOT_PASSWORD
valueFrom:
secretKeyRef:
name: minio-tracing
key: ROOT_PASSWORD
- name: MINIO_PROMETHEUS_AUTH_TYPE
value: "public"
resources:
requests:
cpu: 100m
memory: 512Mi
volumes:
- name: minio-user
secret:
secretName: minio-tracing
volumeClaimTemplates:
- metadata:
name: export-0
spec:
accessModes: [ "ReadWriteOnce" ]
resources:
requests:
storage: 10Gi
- metadata:
name: export-1
spec:
accessModes: [ "ReadWriteOnce" ]
resources:
requests:
storage: 10Gi
---
# Source: minio/templates/servicemonitor.yaml
apiVersion: monitoring.coreos.com/v1
kind: Probe
metadata:
name: minio-tracing-cluster
namespace: "tracing"
labels:
app: minio
chart: minio-5.0.7
release: minio-tracing
heritage: Helm
spec:
jobName: minio-tracing
prober:
url: minio-tracing.tracing:9000
path: /minio/v2/metrics/cluster
scheme: http
targets:
staticConfig:
static:
- minio-tracing.tracing
---
# Source: minio/templates/servicemonitor.yaml
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: minio-tracing
namespace: "tracing"
labels:
app: minio
chart: minio-5.0.7
release: minio-tracing
heritage: Helm
spec:
endpoints:
- port: http
scheme: http
path: /minio/v2/metrics/node
namespaceSelector:
matchNames:
- "tracing"
selector:
matchLabels:
app: minio
release: minio-tracing
monitoring: "true"