forked from sourcegraph/deploy-sourcegraph
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathminio.Deployment.yaml
68 lines (68 loc) · 1.7 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
64
65
66
67
68
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
description: MinIO for storing LSIF uploads.
labels:
deploy: sourcegraph
sourcegraph-resource-requires: no-cluster-admin
app.kubernetes.io/component: minio
name: minio
spec:
minReadySeconds: 10
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
app: minio
strategy:
type: Recreate
template:
metadata:
labels:
deploy: sourcegraph
app: minio
spec:
containers:
- env:
- name: MINIO_ACCESS_KEY
value: AKIAIOSFODNN7EXAMPLE
- name: MINIO_SECRET_KEY
value: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
image: index.docker.io/sourcegraph/minio:insiders@sha256:3d7a0147396ea799284ba707765d477797518425682c9aa65faa5883a63fac4f
args: ['minio', 'server', '/data']
terminationMessagePolicy: FallbackToLogsOnError
name: minio
ports:
- containerPort: 9000
name: minio
livenessProbe:
httpGet:
path: /minio/health/live
port: minio
scheme: HTTP
initialDelaySeconds: 60
timeoutSeconds: 5
readinessProbe:
httpGet:
path: /minio/health/live
port: minio
scheme: HTTP
periodSeconds: 5
timeoutSeconds: 5
resources:
limits:
cpu: "1"
memory: 500M
requests:
cpu: "1"
memory: 500M
volumeMounts:
- mountPath: /data
name: minio-data
securityContext:
runAsUser: 0
volumes:
- name: minio-data
persistentVolumeClaim:
claimName: minio