forked from minio/minio
-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathkubernetes_remote.yml
62 lines (62 loc) · 1.15 KB
/
kubernetes_remote.yml
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
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: workdir
spec:
accessModes:
- ReadWriteOnce
storageClassName: standard
resources:
requests:
storage: 1Gi # make this bigger in production
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: s3x
labels:
name: s3x
app: s3x
spec:
replicas: 2
selector:
matchLabels:
app: s3x
template:
metadata:
labels:
app: s3x
role: gateway
spec:
volumes:
- name: workdir
persistentVolumeClaim:
claimName: workdir
containers:
- name: s3x
image: rtradetech/s3x:latest
args: ["gateway", "s3x", "--temporalx.insecure"]
env:
- name: MINIO_ACCESS_KEY
value: minio
- name: MINIO_SECRET_KEY
value: minio123
ports:
- name: api-s3x
containerPort: 9000
protocol: TCP
---
apiVersion: v1
kind: Service
metadata:
name: s3x-service
labels:
app: s3x
spec:
type: LoadBalancer
ports:
- name: api-s3x
targetPort: api-s3x
port: 9000
selector:
app: s3x